public void remuxTemplate1EAC3ToOutputNamingService_can_set_audio_commentary_when_is_commentary_test()
{
//given not extract for remux
EAC3ToConfiguration config = new EAC3ToConfiguration()
{
IsExtractForRemux = true,
RemuxFileNameTemplate = new EAC3ToRemuxFileNameTemplate()
{
AudioType = "FLAC 5.1",
SeriesName = "BatchGuy",
SeasonNumber = "2",
SeasonYear = "1978",
Tag = "Guy",
VideoResolution = "1080p"
}
};
string filesOutputPath = "c:\\bluray";
string paddedEpisodeNumber = "01";
string episodeName = string.Empty;
//when i get the audio name
IAudioService audioService = new AudioService();
AbstractEAC3ToOutputNamingService service = new RemuxTemplate1EAC3ToOutputNamingService(audioService);
BluRayTitleAudio audio = new BluRayTitleAudio() { Id = "5:", AudioType = EnumAudioType.DTSEXPRESS, Language = "english", IsCommentary = true };
string audioName = service.GetAudioName(config, audio, filesOutputPath, paddedEpisodeNumber, episodeName);
//then audio name should be based on the remux template and commentary
audioName.Should().Be("\"c:\\bluray\\BatchGuy 1978 S02E01 1080p FLAC 5.1-Guy english01-5-commentary.dts\"");
}