Exemplo n.º 1
0
        public void ClosedCaptionTrack_GetByTime_NonExisting_Test()
        {
            var captionTrack = Dummies.GetClosedCaptionTrack();
            var caption      = captionTrack.GetByTime(TimeSpan.FromSeconds(5));

            Assert.IsNull(caption);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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"));
        }