Akka.Streams.Tests.Dsl.LastSinkSpec.A_Flow_with_Sink_Last_must_yield_NoSuchElementException_for_empty_stream C# (CSharp) Метод

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

        public void A_Flow_with_Sink_Last_must_yield_NoSuchElementException_for_empty_stream()
        {
            this.AssertAllStagesStopped(() =>
            {
                Source.Empty<int>()
                    .Invoking(s => s.RunWith(Sink.Last<int>(), Materializer).Wait(TimeSpan.FromSeconds(1)))
                    .ShouldThrow<AggregateException>()
                    .WithInnerException<NoSuchElementException>()
                    .WithInnerMessage("Last of empty stream");
            }, Materializer);
        }