public void ClosedCaptionTrack_GetByTime_NonExisting_Test()
        {
            var captionTrack = Dummies.GetClosedCaptionTrack();
            var caption      = captionTrack.GetByTime(TimeSpan.FromSeconds(5));

            Assert.IsNull(caption);
        }
Beispiel #2
0
        public void ClosedCaptionTrack_GetByTime_Test()
        {
            var captionTrack = Dummies.GetClosedCaptionTrack();
            var caption      = captionTrack.GetByTime(TimeSpan.FromSeconds(0.5));

            Assert.IsNotNull(caption);
            Assert.AreEqual("Hello", caption.Text);
        }
Beispiel #3
0
        public void ClosedCaptionTrack_GetByTime_Test()
        {
            var captionTrack = Dummies.GetClosedCaptionTrack();

            var caption = captionTrack.GetByTime(TimeSpan.FromSeconds(0.5));

            Assert.That(caption, Is.Not.Null);
            Assert.That(caption.Text, Is.EqualTo("Hello"));
        }