public GetVideoName ( |
||
eac3toConfiguration | ||
filesOutputPath | string | |
paddedEpisodeNumber | string | |
episodeName | string | |
리턴 | string |
public void remuxTemplate1EAC3ToOutputNamingService_can_set_video_name_with_vc1_codec_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", VideoFormat = "VC-1" } }; string filesOutputPath = "c:\\bluray"; string paddedEpisodeNumber = "01"; string episodeName = string.Empty; //when i get the video name IAudioService audioService = new AudioService(); AbstractEAC3ToOutputNamingService service = new RemuxTemplate1EAC3ToOutputNamingService(audioService); string videoName = service.GetVideoName(config, filesOutputPath, paddedEpisodeNumber, episodeName); //then video name should be based on the remux template videoName.Should().Be("\"c:\\bluray\\BatchGuy 1978 S02E01 1080p VC-1 FLAC 5.1-Guy.mkv\""); }
public void remuxTemplate1EAC3ToOutputNamingService_can_set_video_name_and_series_name_only_test() { //given not extract for remux EAC3ToConfiguration config = new EAC3ToConfiguration() { IsExtractForRemux = true, RemuxFileNameTemplate = new EAC3ToRemuxFileNameTemplate() { SeriesName = "BatchGuy" } }; string filesOutputPath = "c:\\bluray"; string paddedEpisodeNumber = "01"; string episodeName = string.Empty; //when i get the video name IAudioService audioService = new AudioService(); AbstractEAC3ToOutputNamingService service = new RemuxTemplate1EAC3ToOutputNamingService(audioService); string videoName = service.GetVideoName(config, filesOutputPath, paddedEpisodeNumber, episodeName); //then video name should be based on the remux template videoName.Should().Be("\"c:\\bluray\\BatchGuy E01.mkv\""); }