BatchGuy.Unit.Tests.Services.Eac3to.RemuxTemplate1EAC3ToOutputNamingServiceTests.remuxTemplate1EAC3ToOutputNamingService_can_set_subtitle_name_and_only_required_test C# (CSharp) Метод

remuxTemplate1EAC3ToOutputNamingService_can_set_subtitle_name_and_only_required_test() приватный Метод

        public void remuxTemplate1EAC3ToOutputNamingService_can_set_subtitle_name_and_only_required_test()
        {
            //given not extract for remux
            EAC3ToConfiguration config = new EAC3ToConfiguration()
            {
                IsExtractForRemux = true,
                RemuxFileNameTemplate = new EAC3ToRemuxFileNameTemplate()
                {
                    SeriesName = "BatchGuy",
                    SeasonNumber = "2",
                }
            };
            string filesOutputPath = "c:\\bluray";
            string paddedEpisodeNumber = "01";
            string episodeName = string.Empty;
            //when i get the subtitle name
            IAudioService audioService = new AudioService();
            AbstractEAC3ToOutputNamingService service = new RemuxTemplate1EAC3ToOutputNamingService(audioService);
            BluRayTitleSubtitle subtitle = new BluRayTitleSubtitle() {Id = "3:", Language = "english" };
            string subtitleName = service.GetSubtitleName(config, subtitle, filesOutputPath, paddedEpisodeNumber, episodeName);
            //then subtitle name should be based on the remux template
            subtitleName.Should().Be("\"c:\\bluray\\BatchGuy S02E01 english01-3.sup\"");
        }
RemuxTemplate1EAC3ToOutputNamingServiceTests