Akka.Streams.Tests.Dsl.ReverseArrowSpec.Reverse_Arrows_in_the_GraphDsl_must_work_towards_FlowShape C# (CSharp) Метод

Reverse_Arrows_in_the_GraphDsl_must_work_towards_FlowShape() приватный Метод

private Reverse_Arrows_in_the_GraphDsl_must_work_towards_FlowShape ( ) : void
Результат void
        public void Reverse_Arrows_in_the_GraphDsl_must_work_towards_FlowShape()
        {
            var task = RunnableGraph.FromGraph(GraphDsl.Create(Sink, (b, s) =>
            {
                var f = b.Add(Flow.Create<int>());
                b.To(s).From(f);
                b.From(Source).To(f);
                return ClosedShape.Instance;
            })).Run(Materializer);
            task.Wait(TimeSpan.FromSeconds(1)).Should().BeTrue();
            task.Result.ShouldAllBeEquivalentTo(new[] { 1, 2, 3 });
        }