public void SamiItalic()
        {
            var target = new Sami();
            var subtitle = new Subtitle();
            const string subText = "<i>Now go on!<i>";
            subtitle.Paragraphs.Add(new Paragraph(subText, 0, 999));
            subtitle.Paragraphs.Add(new Paragraph(subText, 1000, 1999));
            var text = target.ToText(subtitle, "title");

            var outSubtitle = new Subtitle();
            target.LoadSubtitle(outSubtitle, text.SplitToLines().ToList(), null);
            Assert.IsTrue(outSubtitle.Paragraphs[0].Text == subText);
            Assert.IsTrue(outSubtitle.Paragraphs[1].Text == subText);
        }
        public void SamiFont()
        {
            var target = new Sami();
            var subtitle = new Subtitle();
            const string subText = "<font color=\"#00ff00\">We have secured the first building!</font>";
            subtitle.Paragraphs.Add(new Paragraph(subText, 0, 999));
            subtitle.Paragraphs.Add(new Paragraph(subText, 1000, 1999));
            var text = target.ToText(subtitle, "title");

            var outSubtitle = new Subtitle();
            target.LoadSubtitle(outSubtitle, text.SplitToLines().ToList(), null);
            Assert.IsTrue(outSubtitle.Paragraphs[0].Text == subText);
            Assert.IsTrue(outSubtitle.Paragraphs[1].Text == subText);
        }
        public void SamiKeepBlankLines()
        {
            var target = new Sami();
            var subtitle = new Subtitle();
            string subText = "Now go on!" + Environment.NewLine + Environment.NewLine + "Now go on!";
            subtitle.Paragraphs.Add(new Paragraph(subText, 0, 999));
            var text = target.ToText(subtitle, "title");

            var outSubtitle = new Subtitle();
            target.LoadSubtitle(outSubtitle, text.SplitToLines().ToList(), null);
            Assert.IsTrue(outSubtitle.Paragraphs[0].Text == subText);
        }