Akka.Streams.Tests.Dsl.FlowSupervisionSpec.Stream_supervision_must_complete_stream_with_ArgumentNullException_when_null_is_emitted C# (CSharp) Method

Stream_supervision_must_complete_stream_with_ArgumentNullException_when_null_is_emitted() private method

        public void Stream_supervision_must_complete_stream_with_ArgumentNullException_when_null_is_emitted()
        {
            var task = Source.From(new[] {"a", "b"}).Select(x => null as string).Limit(1000).RunWith(Sink.Seq<string>(), Materializer);

            task.Invoking(t => t.Wait(TimeSpan.FromSeconds(3)))
                .ShouldThrow<ArgumentNullException>()
                .And.Message.Should().StartWith(ReactiveStreamsCompliance.ElementMustNotBeNullMsg);
        }