public void IllegalAsciiArt1()
{
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("loose arrows should throw exception");
}