コード例 #1
0
        public void FixDialogsOnOneLine2()
        {
            const string source = "- Seriously, though. Are you being bullied? - Nope.";
            string       target = "- Seriously, though. Are you being bullied?" + Environment.NewLine + "- Nope.";
            string       result = FixCommonErrorsHelper.FixDialogsOnOneLine(source, "en");

            Assert.AreEqual(result, target);
        }
コード例 #2
0
        public void FixDialogsOnOneLine3()
        {
            string source = "- Having sexual relationships" + Environment.NewLine + "with other women. - A'ight.";
            string target = "- Having sexual relationships with other women." + Environment.NewLine + "- A'ight.";
            string result = FixCommonErrorsHelper.FixDialogsOnOneLine(source, "en");

            Assert.AreEqual(result, target);
        }
コード例 #3
0
        public void FixDialogsOnOneLine1()
        {
            const string source = "- I was here, putting our child to sleep-- - Emma.";
            string       target = "- I was here, putting our child to sleep--" + Environment.NewLine + "- Emma.";
            string       result = FixCommonErrorsHelper.FixDialogsOnOneLine(source, "en");

            Assert.AreEqual(result, target);
        }