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."); }
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."); }
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>"); }
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!"); }
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."); }
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>"); }