BatchFlow.UnitTests.SplitsAndJoins.JoinedStreams C# (CSharp) Method

JoinedStreams() private method

private JoinedStreams ( ) : void
return void
        public void JoinedStreams()
        {
            StartPoint<int> s1 = new StartPoint<int>(
                (IWritableQueue<int> o)=>
                {
                    o.Send(1);
                    o.Send(3);
                    o.Send(5);
                    o.Send(7);
                }
                );
            StartPoint<int> s2 = new StartPoint<int>(
                (IWritableQueue<int> o) =>
                {
                    o.Send(11);
                    o.Send(13);
                    o.Send(15);
                    o.Send(17);
                }
                );
            Collector<int> end = new Collector<int>();
            Flow f = Flow.FromAsciiArt(@"
            a--+
               V
            b--#-->c
            ", new Dictionary<char, TaskNode>() { {'a', s1}, {'b', s2}, {'c', end} });
            f.Start();
            f.RunToCompletion();
            Assert.AreEqual(8, end.Items.Count);
        }