Akka.Streams.Tests.Dsl.ReverseArrowSpec.Reverse_Arrows_in_the_GraphDsl_must_work_from_UniformFanInShape C# (CSharp) Method

Reverse_Arrows_in_the_GraphDsl_must_work_from_UniformFanInShape() private method

        public void Reverse_Arrows_in_the_GraphDsl_must_work_from_UniformFanInShape()
        {
            var task = RunnableGraph.FromGraph(GraphDsl.Create(Sink, (b, s) =>
            {
                var f = b.Add(new Merge<int, int>(2));
                b.To(f).From(Source);
                b.To(f).From(Streams.Dsl.Source.Empty<int>().MapMaterializedValue(_ => MaterializedValue));
                b.From(f).To(s);
                return ClosedShape.Instance;
            })).Run(Materializer);
            task.Wait(TimeSpan.FromSeconds(1)).Should().BeTrue();
            task.Result.ShouldAllBeEquivalentTo(new[] { 1, 2, 3 });
        }