Example #1
0
 public static Subtitle CreateSubtitle2()
 {
     return(new Subtitle(
                SubtitleIdTests.CreateId2(),
                new SubtitleTimestamps(
                    TimestampTests.CreateTimestamp(10, 0, 0, 0),
                    TimestampTests.CreateTimestamp(10, 0, 5, 0)),
                CreateSingleLineText("Subtitle2")));
 }
Example #2
0
 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")));
 }
Example #3
0
        public void Constructor_NullText_Throws()
        {
            SubtitleText nullText = null;

            Assert.Catch <ArgumentNullException>(
                () => new Subtitle(
                    SubtitleIdTests.CreateId1(),
                    SubtitleTimestampsTests.CreateTimestamps(),
                    nullText));
        }
Example #4
0
        public void Constructor_NullTimestamps_Throws()
        {
            SubtitleTimestamps nullTimestamps = null;

            Assert.Catch <ArgumentNullException>(
                () => new Subtitle(
                    SubtitleIdTests.CreateId1(),
                    nullTimestamps,
                    CreateStubSubtitleText()));
        }