예제 #1
0
        public void audioservice_can_get_truehd_audio_type_by_name()
        {
            //given
            string        name    = "TrueHD";
            IAudioService service = new AudioService();
            //when
            EnumAudioType audioType = service.GetAudioTypeByName(name);

            //then
            audioType.Should().Be(EnumAudioType.TrueHD);
        }
예제 #2
0
        public void audioservice_can_get_lpcm_audio_type_by_name()
        {
            //given
            string        name    = "LPCM";
            IAudioService service = new AudioService();
            //when
            EnumAudioType audioType = service.GetAudioTypeByName(name);

            //then
            audioType.Should().Be(EnumAudioType.LPCM);
        }
예제 #3
0
        public void audioservice_can_get_dtsexpress_audio_type_by_name()
        {
            //given
            string        name    = "DTS Express";
            IAudioService service = new AudioService();
            //when
            EnumAudioType audioType = service.GetAudioTypeByName(name);

            //then
            audioType.Should().Be(EnumAudioType.DTSEXPRESS);
        }