예제 #1
0
            protected override TestResult.EOutcome DoRun(TestObserver observer)
            {
                // By default the outcome is unknown
                TestResult.EOutcome result = TestResult.EOutcome.eUnknown;

                foreach (Test test in m_tests)
                {
                    test.Run(observer);
                }

                return(result);
            }
예제 #2
0
            public void Run(TestObserver observer)
            {
                Notify(TestObserver.EEventType.eTestStart, observer);

                TestResult.EOutcome outcome = TestResult.EOutcome.eFailed;
                try
                {
                    outcome = DoRun(observer);
                }
                catch
                {
                    outcome = TestResult.EOutcome.eException;
                }

                Result.Outcome = outcome;

                Notify(TestObserver.EEventType.eTestEnd, observer);
            }