示例#1
0
        public void Remove_lower_case()
        {
            string value    = "1, 2-3 > < expreção, história, física, pêssego";
            string newValue = "1, 2-3 > < exprecao, historia, fisica, pessego";

            Assert.Equal(newValue, TextHandle.RemoveSpecialCharacters(value));
        }
示例#2
0
        public void Ignore_null()
        {
            string value    = null;
            string newValue = null;

            Assert.Equal(newValue, TextHandle.RemoveSpecialCharacters(value));
        }
示例#3
0
        public void Clean_if_no_contains_a_z_or_number()
        {
            string value    = "    ";
            string newValue = string.Empty;

            Assert.Equal(newValue, TextHandle.RemoveSpecialCharacters(value));
        }
示例#4
0
        public void Remove_upper_case()
        {
            string value    = "1 | 2 & 3 $ EXPREÇÃO, HISTÓRIA, FÍSICA, PÊSSEGO";
            string newValue = "1 | 2 & 3 $ EXPRECAO, HISTORIA, FISICA, PESSEGO";

            Assert.Equal(newValue, TextHandle.RemoveSpecialCharacters(value));
        }