Example #1
0
        public void InvalidStringWhenStringHasInvalidCharactersInBetween()
        {
            FormatComment formatComment = new FormatComment();
            string        testString    = "rem12}o{ve";

            Assert.False(formatComment.RemoveInvalidCharacters(testString) == "rem12ove");
        }
Example #2
0
        public void CheckForInvalidStringWhenStringEndsWithInvalidCharacter()
        {
            FormatComment formatComment = new FormatComment();
            string        testString    = "hello@96";

            Assert.True(formatComment.RemoveInvalidCharacters(testString) == "hello");
        }
Example #3
0
        public void InvalidStringWhenStringStartsWithInvalidCharacter()
        {
            FormatComment formatComment = new FormatComment();
            string        testString    = "67,remove";

            Assert.False(formatComment.RemoveInvalidCharacters(testString) == ",remove");
        }