コード例 #1
0
        public void StartWithUppercaseAfterParagraphNormalDialogNoChange2()
        {
            var prev      = new Paragraph("Bye -", 0, 1000);
            var p         = new Paragraph("- moss!" + Environment.NewLine + " - Bye.", 1200, 5000);
            var fixedText = FixCommonErrors.FixStartWithUppercaseLetterAfterParagraph(p, prev, System.Text.Encoding.UTF8, "en");

            Assert.AreEqual(fixedText, "- moss!" + Environment.NewLine + " - Bye.");
        }
コード例 #2
0
        public void StartWithUppercaseAfterParagraphNormalNoChange2()
        {
            var prev      = new Paragraph("Bye", 0, 1000);
            var p         = new Paragraph("bye.", 1200, 5000);
            var fixedText = FixCommonErrors.FixStartWithUppercaseLetterAfterParagraph(p, prev, System.Text.Encoding.UTF8, "en");

            Assert.AreEqual(fixedText, "bye.");
        }
コード例 #3
0
        public void StartWithUppercaseAfterParagraphNormalDialog4()
        {
            var prev      = new Paragraph("Bye.", 0, 1000);
            var p         = new Paragraph("<i>- moss! Jesus Christ!</i>" + Environment.NewLine + "<i>- what is it?</i>", 1200, 5000);
            var fixedText = FixCommonErrors.FixStartWithUppercaseLetterAfterParagraph(p, prev, System.Text.Encoding.UTF8, "en");

            Assert.AreEqual(fixedText, "<i>- Moss! Jesus Christ!</i>" + Environment.NewLine + "<i>- What is it?</i>");
        }
コード例 #4
0
        public void StartWithUppercaseAfterParagraphNormalDialogueNoChange1()
        {
            Paragraph prev      = new Paragraph("Bye -", 0, 1000);
            Paragraph p         = new Paragraph("- moss!", 1200, 5000);
            var       fixedText = FixCommonErrors.FixStartWithUppercaseLetterAfterParagraph(p, prev, System.Text.Encoding.UTF8, "en");

            Assert.AreEqual(fixedText, "- moss!");
        }
コード例 #5
0
        public void StartWithUppercaseAfterParagraphNormal4()
        {
            Paragraph prev      = new Paragraph("Bye.", 0, 1000);
            Paragraph p         = new Paragraph("bye." + Environment.NewLine + "bye.", 1200, 5000);
            var       fixedText = FixCommonErrors.FixStartWithUppercaseLetterAfterParagraph(p, prev, System.Text.Encoding.UTF8, "en");

            Assert.AreEqual(fixedText, "Bye." + Environment.NewLine + "Bye.");
        }
コード例 #6
0
        public void StartWithUppercaseAfterParagraphNormal3()
        {
            Paragraph prev      = new Paragraph("<i>Bye.</i>", 0, 1000);
            Paragraph p         = new Paragraph("<i>bye.</i>", 1200, 5000);
            var       fixedText = FixCommonErrors.FixStartWithUppercaseLetterAfterParagraph(p, prev, System.Text.Encoding.UTF8, "en");

            Assert.AreEqual(fixedText, "<i>Bye.</i>");
        }