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

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

private eacoutputservice_can_set_dtsexpress_audio_settings_test ( ) : void
Результат void
        public void eacoutputservice_can_set_dtsexpress_audio_settings_test()
        {
            //given dts and audio settings
            EAC3ToConfiguration config = new EAC3ToConfiguration() {  BatchFilePath = "c:\\temp" };
            BluRaySummaryInfo summaryInfo = new BluRaySummaryInfo() { Eac3ToId = "1)", BluRayTitleInfo = new BluRayTitleInfo() { EpisodeNumber = "1", AudioList = new List<BluRayTitleAudio>() { new BluRayTitleAudio() {Id="3:", AudioType = EnumAudioType.DTSEXPRESS, IsSelected = true, Arguments = "-core"}}} };
            string bluRayPath = "c:\\disc";
            IAudioService audioService = new AudioService();
            AbstractEAC3ToOutputNamingService eac3ToOutputNamingService = new EncodeTemplate1EAC3ToOutputNamingService(audioService);
            //when I want the output
            IEAC3ToOutputService service = new EAC3ToOutputService(config, eac3ToOutputNamingService, bluRayPath, summaryInfo);
            //then the dts audio is set
            string output = service.GetAudioStreamPart();
            output.Should().Contain(".dts");
            output.Should().Contain("-core");
        }