DirectoryExists() public méthode

public DirectoryExists ( string path ) : bool
path string
Résultat bool
 public void DirectoryExistsShouldNotFindFiles()
 {
     //Given
     var dir = new ZipArchiveDirectory("Fresh.zip");
     //when
     bool wasFound = dir.DirectoryExists("Fresh/README.txt");
     //then
     Assert.IsFalse(wasFound);
 }
 public void DirectoryExistsShouldIdentifyTopLevelDirectory()
 {
     //Given
     var dir = new ZipArchiveDirectory("Fresh.zip");
     //When
     bool wasFound = dir.DirectoryExists("Fresh");
     //Then
     Assert.IsTrue(wasFound);
 }
 public void DirectoryExistsShouldFailToFindNonExistentDirectory()
 {
     //Given
     var dir = new ZipArchiveDirectory("Fresh.zip");
     //When
     bool wasFound = dir.DirectoryExists(@"Fresh\ban");
     //Then
     Assert.IsFalse(wasFound);
 }
 public void DirectoryExistsShouldFindDirectoryWithoutRoot()
 {
     //Given
     var dir = new ZipArchiveDirectory("Fresh.zip");
     //when
     bool wasFound = dir.DirectoryExists(@"fresh\bin");
     //then
     Assert.IsTrue(wasFound);
 }
 public void DirectoryExistsRequiresFullPathAndWillNotRecurse()
 {
     //Given
     var dir = new ZipArchiveDirectory("Fresh.zip");
     //when
     bool wasFound = dir.DirectoryExists(@"bin");
     //then
     Assert.IsFalse(wasFound);
 }