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

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

private eacoutputservice_can_set_bluray_stream_test ( ) : void
Результат void
        public void eacoutputservice_can_set_bluray_stream_test()
        {
            //given bluray folder and stream#
            string bluRayPath = "c:\\disc";
            EAC3ToConfiguration config = new EAC3ToConfiguration();
            BluRaySummaryInfo bluRaySummaryInfo = new BluRaySummaryInfo() { Eac3ToId = "1)", BluRayTitleInfo = new BluRayTitleInfo() { EpisodeNumber = "1" }  };
            IAudioService audioService = new AudioService();
            AbstractEAC3ToOutputNamingService eac3ToOutputNamingService = new EncodeTemplate1EAC3ToOutputNamingService(audioService);
            //when I want the output
            IEAC3ToOutputService service = new EAC3ToOutputService(config,eac3ToOutputNamingService, bluRayPath, bluRaySummaryInfo);
            //then the bluray path/stream# is set
            string output = service.GetBluRayStreamPart();
            output.Should().Contain(bluRayPath);
            output.Should().Contain("1)");
        }