Akka.Streams.Tests.Dsl.FlowSplitWhenSpec.SplitWhen_must_support_eager_cancellation_of_master_stream_on_cancelling_substreams C# (CSharp) Method

SplitWhen_must_support_eager_cancellation_of_master_stream_on_cancelling_substreams() private method

        public void SplitWhen_must_support_eager_cancellation_of_master_stream_on_cancelling_substreams()
        {
            this.AssertAllStagesStopped(() =>
            {
                WithSubstreamsSupport(5, 8, SubstreamCancelStrategy.Propagate,
                      (masterSubscriber, masterSubscription, expectSubFlow) =>
                      {
                          var s1 = new StreamPuppet(expectSubFlow().RunWith(Sink.AsPublisher<int>(false), Materializer),
                              this);
                          s1.Cancel();
                          masterSubscriber.ExpectComplete();
                      });
            }, Materializer);
        }
    }