Akka.Streams.Tests.Dsl.FlowAggregateSpec.A_Aggregate_must_work_when_using__Source_Aggregate_and_Flow_Aggregate_and_Sink_Fold C# (CSharp) Method

A_Aggregate_must_work_when_using__Source_Aggregate_and_Flow_Aggregate_and_Sink_Fold() private method

        public void A_Aggregate_must_work_when_using__Source_Aggregate_and_Flow_Aggregate_and_Sink_Fold()
        {
            this.AssertAllStagesStopped(() =>
            {
                var task = FoldSource.Via(FoldFlow).RunWith(FoldSink, Materializer);
                task.Wait(TimeSpan.FromSeconds(3)).Should().BeTrue();
                task.Result.Should().Be(Expected);
            }, Materializer);

        }