Example #1
0
        public void Probe_Success()
        {
            var output = new FFProbe();

            var info = output.ParseVideoInfo(VideoLibrary.LocalVideo.FullName);

            Assert.AreEqual(13, info.Duration.Seconds);
        }
Example #2
0
        public void Probe_TooLongOutput()
        {
            var output = new FFProbe(5);

            Assert.ThrowsException <JsonSerializationException>(() =>
            {
                output.ParseVideoInfo(VideoLibrary.LocalVideo.FullName);
            });
        }