GetAudioTypeByName() public method

public GetAudioTypeByName ( string name ) : EnumAudioType
name string
return EnumAudioType
Example #1
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);
 }
Example #2
0
 public void audioservice_can_get_ac3_audio_type_by_name()
 {
     //given
     string name = "AC3";
     IAudioService service = new AudioService();
     //when
     EnumAudioType audioType = service.GetAudioTypeByName(name);
     //then
     audioType.Should().Be(EnumAudioType.AC3);
 }