Ejemplo n.º 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")));
 }
Ejemplo n.º 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")));
 }
Ejemplo n.º 3
0
        public void Constructor_NullText_Throws()
        {
            SubtitleText nullText = null;

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

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