public void ViewSubDirectories() { var direcoryViewer = new DirectoryViewer(_fileSystem); var subdirs = direcoryViewer.GetAllDirectories(@"c:\"); Assert.IsTrue(_tree.Equals(subdirs)); }
public void ViewDirectories() { var directoryViewer = new DirectoryViewer(_fileSystem); var subdir = directoryViewer.GetDirectories(@"c:\"); Assert.AreEqual(2, subdir.Length); Assert.IsTrue(subdir.Contains(@"c:\Dir")); Assert.IsTrue(subdir.Contains(@"c:\demo")); }