BatchFlow.UnitTests.AsciiArt.IllegalAsciiArt2 C# (CSharp) Метод

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

private IllegalAsciiArt2 ( ) : void
Результат void
        public void IllegalAsciiArt2()
        {
            List<string> results = new List<string>();

            StartPoint<int> s = Helpers.GetStartpointCounter(1, 15);
            TaskNode<int, string> filter = Helpers.GetFilter();
            EndPoint<string> n = Helpers.GetEndpoint(results);

            try
            {
                Flow flow = Flow.FromAsciiArt(@"
               a-+--->b->c
             |
            ",
                    new Dictionary<char, TaskNode>()
                {
                    {'a', s},
                    {'b', filter},
                    {'c', n}
                }
                    );
            }
            catch (InvalidOperationException)
            {
                return;
            }
            Assert.Fail("Split connections should throw exception");
        }