Пример #1
0
        public void DcinemaInteropColorAndItalic()
        {
            var target   = new DCSubtitle();
            var subtitle = new Subtitle();

            subtitle.Paragraphs.Add(new Paragraph("<font color=\"#ff0000\"><i>Red</i></font>", 1000, 5000));
            string text = target.ToText(subtitle, "title");

            Assert.IsTrue(text.Contains(" Italic=\"yes\"") && text.Contains(" Color=\"FFFF0000\""));
        }
Пример #2
0
        public void DcinemaInteropItalic()
        {
            var target   = new DCSubtitle();
            var subtitle = new Subtitle();

            subtitle.Paragraphs.Add(new Paragraph("<i>Italic</i>", 1000, 5000));
            string text = target.ToText(subtitle, "title");

            Assert.IsTrue(text.Contains("<Font Italic=\"yes\""));
        }