コード例 #1
0
 public void MicroDvdItalicUnderline()
 {
     var target = new MicroDvd();
     var subtitle = new Subtitle();
     subtitle.Paragraphs.Add(new Paragraph("<i><u>Underline Italic</u></i>", 0, 0));
     string text = target.ToText(subtitle, "title");
     Assert.IsTrue(text == "{0}{0}{Y:i}{Y:u}Underline Italic" || text == "{0}{0}{y:i}{y:u}Underline Italic");
 }
コード例 #2
0
 public void MicroDvdBold()
 {
     var target = new MicroDvd();
     var subtitle = new Subtitle();
     subtitle.Paragraphs.Add(new Paragraph("<b>Bold</b>", 0, 0));
     string text = target.ToText(subtitle, "title");
     Assert.IsTrue(text == "{0}{0}{Y:b}Bold" || text == "{0}{0}{y:b}Bold");
 }