예제 #1
0
        public void FixUnneededSpacesHyphenDoNotChangeDutch2()
        {
            string s1 = "Was het in het voor- of najaar?";
            string s2 = Utilities.RemoveUnneededSpaces(s1, "nl");

            Assert.AreEqual(s2, s1);
        }
예제 #2
0
        public void FixUnneededSpacesHyphenDoNotChange3()
        {
            string s1 = "Did you buy that first- or second-handed?";
            string s2 = Utilities.RemoveUnneededSpaces(s1, "en");

            Assert.AreEqual(s2, s1);
        }
예제 #3
0
        public void FixUnneededSpacesHyphenDoNotChangeDutch1()
        {
            string s1 = "Wat zijn je voor- en familienaam?";
            string s2 = Utilities.RemoveUnneededSpaces(s1, "nl");

            Assert.AreEqual(s2, s1);
        }
예제 #4
0
        public void FixUnneededSpacesHyphenDoNotChange2()
        {
            string s1 = "What are your long- and altitude stats?";
            string s2 = Utilities.RemoveUnneededSpaces(s1, "en");

            Assert.AreEqual(s2, s1);
        }
예제 #5
0
        public void FixUnneededSpacesHyphenDoNotChange1()
        {
            string s1 = "This is it - and he likes it!";
            string s2 = Utilities.RemoveUnneededSpaces(s1, "en");

            Assert.AreEqual(s2, s1);
        }
예제 #6
0
        public void FixUnneededSpacesHyphen2()
        {
            string s1 = "This is a low- budget job";
            string s2 = Utilities.RemoveUnneededSpaces(s1, "en");

            Assert.AreEqual(s2, "This is a low-budget job");
        }
예제 #7
0
        public void FixUnneededSpacesItalics2()
        {
            string s1 = "<i>This is a test </i>";
            string s2 = Utilities.RemoveUnneededSpaces(s1, "en");

            Assert.AreEqual(s2, "<i>This is a test</i>");
        }
예제 #8
0
        public void FixUnneededSpacesDoubleSpace2()
        {
            string s1 = "This is a test  ";
            string s2 = Utilities.RemoveUnneededSpaces(s1, "en");

            Assert.AreEqual(s2, "This is a test");
        }
예제 #9
0
        public void FixUnneededSpacesFontTag3()
        {
            string s = Utilities.RemoveUnneededSpaces("<FONT COLOR=\"#808080\">- Foobar! </FONT>\r\n<font color=\"#808080\"> (PEOPLE SPEAKING INDISTINCTLY) </font>", "en");

            Assert.AreEqual(s, "<font color=\"#808080\">- Foobar!</font>\r\n<font color=\"#808080\">(PEOPLE SPEAKING INDISTINCTLY)</font>");
        }
예제 #10
0
        public void FixUnneededSpacesFontTag1()
        {
            string s = Utilities.RemoveUnneededSpaces("<font color=\"#808080\"> (PEOPLE SPEAKING INDISTINCTLY) </font>", "en");

            Assert.AreEqual(s, "<font color=\"#808080\">(PEOPLE SPEAKING INDISTINCTLY)</font>");
        }
예제 #11
0
        public void FixUnneededSpacesDialogDotDotDotLine2()
        {
            string s = Utilities.RemoveUnneededSpaces("- Hi!" + Environment.NewLine + "- ... Careful", "en");

            Assert.AreEqual(s, "- Hi!" + Environment.NewLine + "- ...Careful");
        }
예제 #12
0
        public void FixUnneededSpacesDialogDotDotDotLine1()
        {
            string s = Utilities.RemoveUnneededSpaces("- ... Careful", "en");

            Assert.AreEqual(s, "- ...Careful");
        }