示例#1
0
        public void TestMethod_string_with_lesser_than()
        {
            const string source   = "four is lesser than <five";
            const string expected = "four is lesser than five";
            string       result   = DeleteFunc.RemoveWindowsForbiddenCharacters(source);

            Assert.AreEqual(result, expected);
        }
示例#2
0
        public void TestMethod_string_with_question_mark()
        {
            const string source   = "What is your age?";
            const string expected = "What is your age";
            string       result   = DeleteFunc.RemoveWindowsForbiddenCharacters(source);

            Assert.AreEqual(result, expected);
        }
示例#3
0
        public void TestMethod_string_with_colon()
        {
            const string source   = "he said: be happy";
            const string expected = "he said be happy";
            string       result   = DeleteFunc.RemoveWindowsForbiddenCharacters(source);

            Assert.AreEqual(result, expected);
        }
示例#4
0
        public void TestMethod_string_with_star()
        {
            const string source   = "she is a *star";
            const string expected = "she is a star";
            string       result   = DeleteFunc.RemoveWindowsForbiddenCharacters(source);

            Assert.AreEqual(result, expected);
        }
示例#5
0
        public void TestMethod_empty_string()
        {
            const string source   = "";
            const string expected = "";
            string       result   = DeleteFunc.RemoveWindowsForbiddenCharacters(source);

            Assert.AreEqual(result, expected);
        }
示例#6
0
        public void TestMethod_no_character_forbidden()
        {
            const string source   = "A long long time ago in a galaxy far far away";
            const string expected = "A long long time ago in a galaxy far far away";
            string       result   = DeleteFunc.RemoveWindowsForbiddenCharacters(source);

            Assert.AreEqual(result, expected);
        }