예제 #1
0
        public void TestIsSupportedByContainer()
        {
            foreach (AudioFormat audioFormat in Enum.GetValues(typeof(AudioFormat)))
            {
                Assert.IsTrue(AudioUtility.IsSupportedByContainer(ContainerFormat.Mkv, audioFormat));
            }

            Assert.IsTrue(AudioUtility.IsSupportedByContainer(ContainerFormat.Mp4, AudioFormat.Aac));
            Assert.IsTrue(AudioUtility.IsSupportedByContainer(ContainerFormat.Mp4, AudioFormat.Ac3));
            Assert.IsTrue(AudioUtility.IsSupportedByContainer(ContainerFormat.Mp4, AudioFormat.Dts));
            Assert.IsTrue(AudioUtility.IsSupportedByContainer(ContainerFormat.Mp4, AudioFormat.HeAac));
            Assert.IsFalse(AudioUtility.IsSupportedByContainer(ContainerFormat.Mp4, AudioFormat.DolbyTrueHd));
            Assert.IsFalse(AudioUtility.IsSupportedByContainer(ContainerFormat.Mp4, AudioFormat.DtsMasterAudio));
        }