public void DcinemaSmpteColorAndItalic()
 {
     var target = new DCinemaSmpte2010();
     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("<dcst:Font Italic=\"yes\" Color=\"FFFF0000\">Red</dcst:Font>"));
 }
 private string ConvertToTimeString(TimeCode time)
 {
     return(string.Format("{0:00}:{1:00}:{2:00}:{3:00}", time.Hours, time.Minutes, time.Seconds, DCinemaSmpte2010.MsToFramesMaxFrameRate(time.Milliseconds, frameRate)));
 }
 public void DcinemaSmpteItalic()
 {
     var target = new DCinemaSmpte2010();
     var subtitle = new Subtitle();
     subtitle.Paragraphs.Add(new Paragraph("<i>Italic</i>", 1000, 5000));
     string text = target.ToText(subtitle, "title");
     Assert.IsTrue(text.Contains("<dcst:Font Italic=\"yes\">Italic</dcst:Font>"));
 }