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

Reverse_Arrows_in_the_GraphDsl_must_work_towards_SourceShape() private method

        public void Reverse_Arrows_in_the_GraphDsl_must_work_towards_SourceShape()
        {
            var task = RunnableGraph.FromGraph(GraphDsl.Create(Sink, (b, s) =>
            {
                var o = b.Add(Source);
                b.To(s).From(o);
                return ClosedShape.Instance;
            })).Run(Materializer);
            task.Wait(TimeSpan.FromSeconds(1)).Should().BeTrue();
            task.Result.ShouldAllBeEquivalentTo(new[] { 1, 2, 3 });
        }