public void ConcatAll_must_on_OnError_on_opening_substream_cancel_the_master_stream_and_signal_error()
{
this.AssertAllStagesStopped(() =>
{
var publisher = TestPublisher.CreateManualProbe<Source<int, NotUsed>>(this);
var subscriber = TestSubscriber.CreateManualProbe<int>(this);
Source.FromPublisher(publisher)
.ConcatMany<Source<int,NotUsed>,int,NotUsed>(x => { throw TestException; })
.To(Sink.FromSubscriber(subscriber))
.Run(Materializer);
var upstream = publisher.ExpectSubscription();
var downstream = subscriber.ExpectSubscription();
downstream.Request(1000);
var substreamPublisher = TestPublisher.CreateManualProbe<int>(this);
var substreamFlow = Source.FromPublisher(substreamPublisher);
upstream.ExpectRequest();
upstream.SendNext(substreamFlow);
subscriber.ExpectError().Should().Be(TestException);
upstream.ExpectCancellation();
}, Materializer);
}