public void GetFilename_ShouldMatchWhenPassedInvalidChars() { // Arrange var expected = @"C:\temp\This is my filename.mp4"; var fixer = new FilenameFixer("This is my >>filename<<.mp4", "C:\\temp\""); // Act var actual = fixer.GetFilename(); // Assert Assert.AreEqual(expected, actual); }
public void GetFilename_ShouldMatch() { // Arrange var expected = @"C:\temp\This is my filename.mp4"; var fixer = new FilenameFixer("This is my filename.mp4", "C:\\temp"); // Act var actual = fixer.GetFilename(); // Assert Assert.AreEqual(expected, actual); }