Пример #1
0
        public void Constuctor_GetTree_OK()
        {
            const string p  = @"C:\temp";
            var          re = new RootEntry();

            re.RecurseTree(p);

            Assert.That(re, Is.Not.Null);
            Assert.That(re.Children, Is.Not.Null);
            Assert.That(re.Children.Count, Is.GreaterThan(0));
        }
Пример #2
0
        public void Constuctor_GetTreeWithMoreThanOneLevel_OK()
        {
            const string p  = @"C:\temp";
            var          re = new RootEntry();

            re.RecurseTree(p);

            Assert.That(re, Is.Not.Null);
            var found = re.Children.Any(x => x.Children != null && x.Children.Count > 0);

            Assert.That(found, Is.True, "One of entries does not have children.");
        }