Example #1
0
        public void Constructor_NullText_Throws()
        {
            SubtitleText nullText = null;

            Assert.Catch <ArgumentNullException>(
                () => new Subtitle(
                    SubtitleIdTests.CreateId1(),
                    SubtitleTimestampsTests.CreateTimestamps(),
                    nullText));
        }
Example #2
0
        public void Constructor_NullId_Throws()
        {
            SubtitleId nullId = null;

            Assert.Catch <ArgumentNullException>(
                () => new Subtitle(
                    nullId,
                    SubtitleTimestampsTests.CreateTimestamps(),
                    CreateStubSubtitleText()));
        }