コード例 #1
0
        public void DcinemaInteropColorAndItalic()
        {
            var target   = new DCinemaInterop();
            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 DCinemaInterop();
            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\""));
        }