Akka.Streams.Tests.Dsl.FlowSplitWhenSpec.SplitWhen_must_not_emit_substreams_if_the_parent_stream_is_empty C# (CSharp) Method

SplitWhen_must_not_emit_substreams_if_the_parent_stream_is_empty() private method

        public void SplitWhen_must_not_emit_substreams_if_the_parent_stream_is_empty()
        {
            this.AssertAllStagesStopped(() =>
            {
                var task =
                    Source.Empty<int>()
                        .SplitWhen(_ => true)
                        .Lift()
                        .SelectAsync(1, s => s.RunWith(Sink.FirstOrDefault<int>(), Materializer))
                        .Grouped(10)
                        .RunWith(Sink.FirstOrDefault<IEnumerable<int>>(),
                    Materializer);
                task.Wait(TimeSpan.FromSeconds(3)).Should().BeTrue();
                task.Result.ShouldBeEquivalentTo(default(IEnumerable<int>));
            }, Materializer);
        }