public static Subtitle CreateSubtitle1() { return(new Subtitle( SubtitleIdTests.CreateId1(), new SubtitleTimestamps( TimestampTests.CreateTimestamp(5, 4, 3, 2), TimestampTests.CreateTimestamp(5, 4, 3, 3)), CreateSingleLineText("Subtitle1"))); }
public void Constructor_NullText_Throws() { SubtitleText nullText = null; Assert.Catch <ArgumentNullException>( () => new Subtitle( SubtitleIdTests.CreateId1(), SubtitleTimestampsTests.CreateTimestamps(), nullText)); }
public void Constructor_NullTimestamps_Throws() { SubtitleTimestamps nullTimestamps = null; Assert.Catch <ArgumentNullException>( () => new Subtitle( SubtitleIdTests.CreateId1(), nullTimestamps, CreateStubSubtitleText())); }