예제 #1
0
        public void BitStreamFilterVideo_Verify()
        {
            var settingWrong1 = new BitStreamFilterVideo("");
            var setting = new BitStreamFilterVideo("aac_adtstoasc");

            Assert.Throws<InvalidOperationException>(() => { SettingSerializer.Serialize(settingWrong1); });
            Assert.DoesNotThrow(() => SettingSerializer.Serialize(setting));
            Assert.Equal(SettingSerializer.Serialize(setting), "-bsf:v aac_adtstoasc");
        }
예제 #2
0
        public void BitStreamFilterVideo_Verify()
        {
            var settingWrong1 = new BitStreamFilterVideo("");
            var setting = new BitStreamFilterVideo("aac_adtstoasc");

            Assert.Throws<InvalidOperationException>(() => { var s = settingWrong1.GetAndValidateString(); });
            Assert.DoesNotThrow(() => { var s = setting.GetAndValidateString(); });
            Assert.Equal(setting.GetAndValidateString(), "-bsf:v aac_adtstoasc");
        }