public void CanChangeExtensionOfPath() { // Given FilePath path = new FilePath("temp/hello.txt"); // When path = path.ChangeExtension(".dat"); // Then Assert.AreEqual("temp/hello.dat", path.ToString()); }
public void CanAppendExtensionToPath(string extension, string expected) { // Given FilePath path = new FilePath("temp/hello.txt"); // When path = path.AppendExtension(extension); // Then Assert.AreEqual(expected, path.ToString()); }
public void ShouldChangeExtension(string extension, string expected) { // Given FilePath path = new FilePath("temp/hello.txt"); // When path = path.ChangeExtension(extension); // Then Assert.AreEqual(expected, path.ToString()); }