예제 #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.ToUri(value));
        }
예제 #2
0
        public void Clean_if_no_contains_a_z_or_number_add_delemiter()
        {
            string value    = "    ";
            string newValue = string.Empty;

            Assert.Equal(newValue, TextHandle.ToUri(value, "_"));
        }
예제 #3
0
        public void Ignore_null_add_delemiter()
        {
            string value    = null;
            string newValue = null;

            Assert.Equal(newValue, TextHandle.ToUri(value, "_"));
        }
예제 #4
0
        public void Remove_upper_case_add_delemiter()
        {
            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.ToUri(value, "_"));
        }
예제 #5
0
        public void Remove_lower_case_add_delemiter()
        {
            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.ToUri(value, "_"));
        }
예제 #6
0
        public void Ignore_null()
        {
            string value    = null;
            string newValue = null;

            Assert.Equal(newValue, TextHandle.ToUri(value));
        }
예제 #7
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.ToUri(value));
        }