Akka.Streams.Tests.Dsl.ReverseArrowSpec.Reverse_Arrows_in_the_GraphDsl_must_work_towards_Outlets C# (CSharp) Méthode

Reverse_Arrows_in_the_GraphDsl_must_work_towards_Outlets() private méthode

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