コード例 #1
0
        public void ReplaceInvalidPathChars()
        {
            var fileNameCleaner = new FileNameCleaner();

            Assert.AreEqual("abc_", fileNameCleaner.ReplaceInvalidPathChars("abc|", "_"));
        }
コード例 #2
0
        public void Remove_InvalidPathChars(string fileName, string expectedOutput)
        {
            var fileNameCleaner = new FileNameCleaner();

            Assert.AreEqual(expectedOutput, fileNameCleaner.ReplaceInvalidPathChars(fileName));
        }