Akka.Streams.Tests.Dsl.FlowTakeWhileSpec.A_TakeWhile_must_complete_the_future_for_an_empty_stream C# (CSharp) Method

A_TakeWhile_must_complete_the_future_for_an_empty_stream() private method

        public void A_TakeWhile_must_complete_the_future_for_an_empty_stream()
        {
            this.AssertAllStagesStopped(() =>
            {
                Source.Empty<int>()
                    .TakeWhile(i => i < 2)
                    .RunWith(this.SinkProbe<int>(), Materializer)
                    .Request(1)
                    .ExpectComplete();
            }, Materializer);
        }