Exemplo n.º 1
0
            public void AtEnd()
            {
                string input    = @"aaaa\x3D";
                string expected = "aaaa=";
                string result   = SrkStringTransformer.UnescapeUnicodeSequences(input);

                Assert.AreEqual(expected, result);
            }
Exemplo n.º 2
0
            public void AtStart()
            {
                string input    = @"\x3Daaaa";
                string expected = "=aaaa";
                string result   = SrkStringTransformer.UnescapeUnicodeSequences(input);

                Assert.AreEqual(expected, result);
            }
Exemplo n.º 3
0
            public void WorksOn0x3D()
            {
                string input    = @"\x3D";
                string expected = "=";
                string result   = SrkStringTransformer.UnescapeUnicodeSequences(input);

                Assert.AreEqual(expected, result);
            }
Exemplo n.º 4
0
            public void WorksOnStringWithHeart()
            {
                string input    = @"aaaa\xE9aaaa";
                string expected = "aaaaéaaaa";
                string result   = SrkStringTransformer.UnescapeUnicodeSequences(input);

                Assert.AreEqual(expected, result);
            }
Exemplo n.º 5
0
            public void ModeFull_MultiSpaces_FirstCharBecomesOnlyChar()
            {
                string input    = "   a   b  \t\r\nc\t\t  d\t \t";
                string expected = "a b c\td\t";
                string result   = SrkStringTransformer.SimplifySpaces(input, false);

                SrkToolkit.Testing.Assert.AreEqual(expected, result);
            }