public GetAudioTypeByName ( string name ) : EnumAudioType | ||
name | string | |
리턴 | EnumAudioType |
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); }
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); }