Beispiel #1
0
        public void Remove_AllInvalidChars(string fileName, string expectedOutput)
        {
            var fileNameCleaner = new FileNameCleaner();

            Assert.AreEqual(expectedOutput, fileNameCleaner.ReplaceAllInvalidChars(fileName));
        }
Beispiel #2
0
        public void ReplaceAllInvalidChars()
        {
            var fileNameCleaner = new FileNameCleaner();

            Assert.AreEqual("abc_", fileNameCleaner.ReplaceAllInvalidChars("abc*", "_"));
        }