Exemplo n.º 1
0
        public void Remove_InvalidFileChars(string fileName, string expectedOutput)
        {
            var fileNameCleaner = new FileNameCleaner();

            Assert.AreEqual(expectedOutput, fileNameCleaner.ReplaceInvalidFileChars(fileName));
        }
Exemplo n.º 2
0
        public void ReplaceInvalidFileChars()
        {
            var fileNameCleaner = new FileNameCleaner();

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