Пример #1
0
        public void GetListFromRoot_FirstLevelEntry_TwoItemsReturned()
        {
            var re = new RootEntry {
                Path = @"X:\"
            };
            var de1 = new DirEntry {
                Path = @"de1"
            };

            re.Children.Add(de1);
            re.SetCommonEntryFields();

            var list = de1.GetListFromRoot();

            Assert.That(list[0].Path, Is.EqualTo(@"X:\"));
            Assert.That(list[1].Path, Is.EqualTo(@"de1"));
        }
Пример #2
0
        private void SetDirectoryWithExpand(DirEntry dirEntry)
        {
            var activatedDirEntryList = dirEntry.GetListFromRoot();

            SetDirectoryWithExpand(activatedDirEntryList);
        }