Akka.Streams.Tests.IO.OutputStreamSinkSpec.OutputStreamSink_must_close_underlying_stream_when_error_received C# (CSharp) Method

OutputStreamSink_must_close_underlying_stream_when_error_received() private method

        public void OutputStreamSink_must_close_underlying_stream_when_error_received()
        {
            this.AssertAllStagesStopped(() =>
            {
                var p = CreateTestProbe();
                Source.Failed<ByteString>(new Exception("Boom!"))
                    .RunWith(StreamConverters.FromOutputStream(() => new CloseOutputStream(p)), _materializer);

                p.ExpectMsg("closed");
            }, _materializer);
        }