public void Remove_AllInvalidChars(string fileName, string expectedOutput) { var fileNameCleaner = new FileNameCleaner(); Assert.AreEqual(expectedOutput, fileNameCleaner.ReplaceAllInvalidChars(fileName)); }
public void ReplaceAllInvalidChars() { var fileNameCleaner = new FileNameCleaner(); Assert.AreEqual("abc_", fileNameCleaner.ReplaceAllInvalidChars("abc*", "_")); }