Akka.Streams.Tests.IO.InputStreamSinkSpec.InputStreamSink_should_fail_to_materialize_with_zero_sized_input_buffer C# (CSharp) Метод

InputStreamSink_should_fail_to_materialize_with_zero_sized_input_buffer() приватный Метод

        public void InputStreamSink_should_fail_to_materialize_with_zero_sized_input_buffer()
        {
            Action a = () => Source.Single(_byteString).RunWith(StreamConverters.AsInputStream(Timeout).WithAttributes(Attributes.CreateInputBuffer(0, 0)), _materializer);
            a.ShouldThrow<ArgumentException>();
            /*
            With Source.single we test the code path in which the sink
            itself throws an exception when being materialized. If
            Source.empty is used, the same exception is thrown by
            Materializer.
            */
        }