public void GetDirectoriesInDirectoryWithNull() { // Setup var fileSystem = new PathTree <string>(); // Execute fileSystem.GetDirectories(a_path: null); }
public void GetDirectoriesInNonExistantDirectory() { // Setup var fileSystem = new PathTree <string>(); // Execute fileSystem.GetDirectories(@"X:\MYDIRECTORY"); }
public void GetDirectoryInRoot() { // Setup var fileSystem = new PathTree <string>(); fileSystem.CreateDirectory(@"x:\directory1"); fileSystem.CreateDirectory(@"x:\directory2\child"); fileSystem.CreateFile(@"x:\directory3\file.rgb", "Value"); // Execute var directoryPaths = fileSystem.GetDirectories(@"X:\"); // Assert Assert.AreEqual(3, directoryPaths.Length); }
public void GetDirectoriesWithSearchPattern() { // Setup var fileSystem = new PathTree <string>(); fileSystem.CreateDirectory(@"x:\mydirectory\directory1"); fileSystem.CreateDirectory(@"x:\mydirectory\directory2\child"); fileSystem.CreateFile(@"x:\mydirectory\directory3\file.rgb", "Value"); // Execute var directoryPaths = fileSystem.GetDirectories(@"X:\MYDIRECTORY", "*1"); // Assert Assert.AreEqual(1, directoryPaths.Length); }
public void GetDirectoryInRoot() { // Setup var fileSystem = new PathTree<string>(); fileSystem.CreateDirectory(@"x:\directory1"); fileSystem.CreateDirectory(@"x:\directory2\child"); fileSystem.CreateFile(@"x:\directory3\file.rgb", "Value"); // Execute var directoryPaths = fileSystem.GetDirectories(@"X:\"); // Assert Assert.AreEqual(3, directoryPaths.Length); }
public void GetDirectoriesWithSearchPattern() { // Setup var fileSystem = new PathTree<string>(); fileSystem.CreateDirectory(@"x:\mydirectory\directory1"); fileSystem.CreateDirectory(@"x:\mydirectory\directory2\child"); fileSystem.CreateFile(@"x:\mydirectory\directory3\file.rgb", "Value"); // Execute var directoryPaths = fileSystem.GetDirectories(@"X:\MYDIRECTORY", "*1"); // Assert Assert.AreEqual(1, directoryPaths.Length); }
public void GetDirectoriesInNonExistantDirectory() { // Setup var fileSystem = new PathTree<string>(); // Execute fileSystem.GetDirectories(@"X:\MYDIRECTORY"); }
public void GetDirectoriesInDirectoryWithNull() { // Setup var fileSystem = new PathTree<string>(); // Execute fileSystem.GetDirectories(a_path: null); }