public void ChangeExtensionWithNull() { // Setup var file = new TestFile(@"x:\directory\File.txt"); // Execute var result = file.ChangeExtension(a_extension: null); }
public void ChangeExtensionWithNull() { // Setup var file = new TestFile(@"x:\directory\File.txt"); // Execute var result = file.ChangeExtension(a_extension: null); }
public void ChangeExtension() { // Setup var file = new TestFile(@"x:\directory\File.txt"); // Execute var result = file.ChangeExtension("jpg"); Assert.AreEqual("File.jpg", result.Name); Assert.AreEqual(@"x:\directory\File.jpg", result.Path); }
public void ChangeExtension() { // Setup var file = new TestFile(@"x:\directory\File.txt"); // Execute var result = file.ChangeExtension("jpg"); Assert.AreEqual("File.jpg", result.Name); Assert.AreEqual(@"x:\directory\File.jpg", result.Path); }