Akka.Streams.Tests.Dsl.FlowWatchTerminationSpec.A_WatchTermination_must_complete_the_future_for_an_empty_stream C# (CSharp) Method

A_WatchTermination_must_complete_the_future_for_an_empty_stream() private method

        public void A_WatchTermination_must_complete_the_future_for_an_empty_stream()
        {
            this.AssertAllStagesStopped(() =>
            {
                var t =
                    Source.Empty<int>()
                        .WatchTermination(Keep.Right)
                        .ToMaterialized(this.SinkProbe<int>(), Keep.Both)
                        .Run(Materializer);
                var future = t.Item1;
                var p = t.Item2;
                p.Request(1);
                future.Wait(TimeSpan.FromSeconds(3)).Should().BeTrue();
            }, Materializer);
        }