コード例 #1
0
        public void SearchedFolderFound()
        {
            DirectoryInfo dir = Directory.GetParent("..\\..\\TestDirectory");
            DirectoryTree dirTree = new DirectoryTree(dir.FullName + "\\TestDirectory");
            Folder folder = dirTree.FindFolder("1");

            Assert.AreEqual("1", folder.Name);

            Assert.AreEqual(1, folder.Files.Count);

            Assert.AreEqual(2, folder.Folders.Count);
        }