public void CreateAudioParamThrowAggregateExceptionTest()
        {
            //Arrange
            var factory = new MultimediaAdjusterParamFactory();

            //Act & Assert
            var exception2 = ExceptionAssert.Throws <AggregateException>(() => factory.CreateAudioParam(_videoMetadata2.Object));

            ExceptionAssert.NotThrows <AggregateException>(() => factory.CreateAudioParam(_videoMetadata0.Object));
            ExceptionAssert.NotThrows <AggregateException>(() => factory.CreateAudioParam(_videoMetadata1.Object));

            //Assert
            Assert.IsTrue(exception2.InnerExceptions.OfType <VideoFormatException>().Any(p => p.ParamType == ParamType.AudioStreamCount));
        }
        public void CreateAudioParamTest()
        {
            //Arrange
            var factory = new MultimediaAdjusterParamFactory();

            //Act
            var audioParam = factory.CreateAudioParam(_videoMetadata.Object);

            //Assert
            Assert.AreEqual(_videoMetadata.Object.AudioFormat, audioParam.AudioCodec);
            Assert.AreEqual(_videoMetadata.Object.AudioBitRate, audioParam.AudioBitrate);
            Assert.AreEqual(_videoMetadata.Object.AudioChannels, audioParam.AudioChannels);
            Assert.AreEqual(_videoMetadata.Object.AudioSamplingRate, audioParam.AudioSampleRate);
            Assert.IsTrue(audioParam.IsExistAudioStream);
        }