BatchFlow.UnitTests.Exceptions.HandledExceptionsFromTasks C# (CSharp) Метод

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

private HandledExceptionsFromTasks ( ) : void
Результат void
        public void HandledExceptionsFromTasks()
        {
            StartPoint<int> start = StandardTasks.GetRangeEnumerator(1, 2);
            int i = 0;
            EndPoint<int> end = new EndPoint<int>(
                (int input) =>
                {
                    i++;
                    throw new InvalidTimeZoneException();
                }
                );
            end.Retries = 3;
            Flow f = Flow.FromAsciiArt("b<--a", start, end);
            f.Error += new EventHandler<Flow.ErrorEventArgs>(f_Error);
            f.Start();
            f.RunToCompletion();
            //Assert.AreEqual(RunStatus.Stopped, end.Status); //check doesn't hold, as the separate tasks may still be shutting down when the last data item leaves the system
            Assert.AreEqual(0, end.ItemsProcessed); // nothing successfully
            Console.WriteLine("Status of flow: \n{0}", f.GetStateSnapshot());
        }