Akka.Streams.Tests.Dsl.FlowRecoverWithSpec.A_RecoverWith_must_failed_stream_if_handler_is_not_for_such_exception_type C# (CSharp) Method

A_RecoverWith_must_failed_stream_if_handler_is_not_for_such_exception_type() private method

        public void A_RecoverWith_must_failed_stream_if_handler_is_not_for_such_exception_type()
        {
            this.AssertAllStagesStopped(() =>
            {
                var probe = Source.From(Enumerable.Range(1, 3)).Select(x =>
                {
                    if (x == 2)
                        throw Ex;
                    return x;
                }).RecoverWith(_ => null).RunWith(this.SinkProbe<int>(), Materializer);

                probe
                    .Request(1)
                    .ExpectNext(1);

                probe
                    .Request(1)
                    .ExpectError().Should().Be(Ex);
            }, Materializer);
        }