Exemplo n.º 1
0
        public void ThrowOnAVError_ThrowsOnError()
        {
            var client = new FFmpegClient();

            Assert.Throws <Exception>(() => client.ThrowOnAVError(-100, true));
            Assert.Throws <InvalidOperationException>(() => client.ThrowOnAVError(100, false));
            Assert.Throws <Exception>(() => client.ThrowOnAVError(-100, false));
        }
Exemplo n.º 2
0
        public void ThrowOnAVError_ReturnsOnSuccess(int ret, bool postiveIndicatesSuccess)
        {
            var client = new FFmpegClient();

            client.ThrowOnAVError(ret, postiveIndicatesSuccess);
        }