コード例 #1
0
        public void FixShortLinesNormal()
        {
            var target = new FixCommonErrors_Accessor();

            InitializeFixCommonErrorsLine(target, "This is" + Environment.NewLine + "short!");
            target.FixShortLines();
            Assert.AreEqual(target._subtitle.Paragraphs[0].Text, "This is short!");
        }
コード例 #2
0
        public void FixShortLinesDialogueItalicTwo()
        {
            var target = new FixCommonErrors_Accessor();

            InitializeFixCommonErrorsLine(target, "<i>- Hallo!</i>" + Environment.NewLine + "<i>- Hi<i>");
            target.FixShortLines();
            Assert.AreEqual(target._subtitle.Paragraphs[0].Text, "<i>- Hallo!</i>" + Environment.NewLine + "<i>- Hi<i>");
        }
コード例 #3
0
        public void FixShortLinesLong()
        {
            var target = new FixCommonErrors_Accessor();

            InitializeFixCommonErrorsLine(target, "This I'm pretty sure is not a" + Environment.NewLine + "short line, that should be merged!!!");
            target.FixShortLines();
            Assert.AreEqual(target._subtitle.Paragraphs[0].Text, "This I'm pretty sure is not a" + Environment.NewLine + "short line, that should be merged!!!");
        }
コード例 #4
0
 public void FixShortLinesNormalItalic()
 {
     var target = new FixCommonErrors_Accessor();
     InitializeFixCommonErrorsLine(target, "<i>This is" + Environment.NewLine + "short!</i>");
     target.FixShortLines();
     Assert.AreEqual(target._subtitle.Paragraphs[0].Text, "<i>This is short!</i>");
 }
コード例 #5
0
 public void FixShortLinesLong()
 {
     var target = new FixCommonErrors_Accessor();
     InitializeFixCommonErrorsLine(target, "This I'm pretty sure is not a" + Environment.NewLine + "short line, that should be merged!!!");
     target.FixShortLines();
     Assert.AreEqual(target._subtitle.Paragraphs[0].Text, "This I'm pretty sure is not a" + Environment.NewLine + "short line, that should be merged!!!");
 }
コード例 #6
0
 public void FixShortLinesDialogueItalicTwo()
 {
     var target = new FixCommonErrors_Accessor();
     InitializeFixCommonErrorsLine(target, "<i>- Hallo!</i>" + Environment.NewLine + "<i>- Hi<i>");
     target.FixShortLines();
     Assert.AreEqual(target._subtitle.Paragraphs[0].Text, "<i>- Hallo!</i>" + Environment.NewLine + "<i>- Hi<i>");
 }