public GetDirectoryEntires ( string path, string searchPattern ) : string[] | ||
path | string | |
searchPattern | string | |
리턴 | string[] |
public void GetDirectoriesShouldReturnDirectoriesInRoot() { //Given var dir = new ZipArchiveDirectory("Fresh.zip"); //when string[] directories = dir.GetDirectoryEntires(".", "*"); //Then Assert.That(directories.Length,Is.EqualTo(1)); Assert.That(directories[0], Is.EqualTo(FullPath("Fresh"))); }
public void GetDirectoriesShouldReturnDirectoriesInNestedDirectory() { //Given var dir = new ZipArchiveDirectory("Fresh.zip"); //when string[] directories = dir.GetDirectoryEntires(@"Fresh\lib\IronRuby", "*"); //then Assert.That(directories.Length,Is.EqualTo(2)); Assert.That(String.Join(",", directories), Is.EqualTo(FullPath(@"Fresh/lib/IronRuby/digest") + "," + FullPath("Fresh/lib/IronRuby/test"))); }