public void GetFileStatsWithNullpath() { // Setup var fileSystem = new PathTree <string>(); fileSystem.CreateFile(@"X:\Directory\File.dat", "Value"); // Execute fileSystem.GetLeafValue(a_path: null); }
public void CreateFile() { // Setup var created = DateTime.UtcNow; var lastModified = DateTime.UtcNow; var fileSystem = new PathTree <string>(); // Execute fileSystem.CreateFile(@"X:\Directory\File.dat", "Value"); // Assert Assert.IsTrue(fileSystem.FileExists(@"X:\Directory\File.dat")); Assert.AreEqual("Value", fileSystem.GetLeafValue(@"X:\Directory\File.dat")); }
public void CreateFile() { // Setup var created = DateTime.UtcNow; var lastModified = DateTime.UtcNow; var fileSystem = new PathTree<string>(); // Execute fileSystem.CreateFile(@"X:\Directory\File.dat", "Value"); // Assert Assert.IsTrue(fileSystem.FileExists(@"X:\Directory\File.dat")); Assert.AreEqual("Value", fileSystem.GetLeafValue(@"X:\Directory\File.dat")); }
public void GetLeafValue() { // Setup var created = DateTime.UtcNow; var lastModified = DateTime.UtcNow; var fileSystem = new PathTree <string>(); fileSystem.CreateFile(@"X:\Directory\File.dat", "Value"); // Execute var result = fileSystem.GetLeafValue(@"X:\Directory\File.dat"); // Assert Assert.AreEqual("Value", result); }
public void GetLeafValue() { // Setup var created = DateTime.UtcNow; var lastModified = DateTime.UtcNow; var fileSystem = new PathTree<string>(); fileSystem.CreateFile(@"X:\Directory\File.dat", "Value"); // Execute var result = fileSystem.GetLeafValue(@"X:\Directory\File.dat"); // Assert Assert.AreEqual("Value", result); }
public void GetFileStatsWithNullpath() { // Setup var fileSystem = new PathTree<string>(); fileSystem.CreateFile(@"X:\Directory\File.dat", "Value"); // Execute fileSystem.GetLeafValue(a_path: null); }