Akka.Streams.Tests.Dsl.GraphUnzipSpec.A_Unzip_must_work_with_Zip C# (CSharp) Method

A_Unzip_must_work_with_Zip() private method

private A_Unzip_must_work_with_Zip ( ) : void
return void
        public void A_Unzip_must_work_with_Zip()
        {
            this.AssertAllStagesStopped(() =>
            {
                var c1 = TestSubscriber.CreateManualProbe<Tuple<int, string>>(this);

                RunnableGraph.FromGraph(GraphDsl.Create(b =>
                {
                    var zip = b.Add(new Zip<int, string>());
                    var unzip = b.Add(new UnZip<int, string>());
                    var source =
                        Source.From(new[]
                        {
                            new KeyValuePair<int, string>(1, "a"),
                            new KeyValuePair<int, string>(2, "b"),
                            new KeyValuePair<int, string>(3, "c")
                        });

                    b.From(source).To(unzip.In);
                    b.From(unzip.Out0).To(zip.In0);
                    b.From(unzip.Out1).To(zip.In1);
                    b.From(zip.Out).To(Sink.FromSubscriber(c1));

                    return ClosedShape.Instance;
                })).Run(Materializer);

                var sub1 = c1.ExpectSubscription();
                sub1.Request(5);
                c1.ExpectNext(Tuple.Create(1, "a"));
                c1.ExpectNext(Tuple.Create(2, "b"));
                c1.ExpectNext(Tuple.Create(3, "c"));
                c1.ExpectComplete();
            }, Materializer);
        }
    }