Ejemplo n.º 1
0
        void RunTests()
        {
            try {
                NUnitService.ResetResult(test);

                TestContext ctx = new TestContext(monitor, resultsPad, context, DateTime.Now);
                test.Run(ctx);
                test.SaveResults();
                success = true;
            } catch (Exception ex) {
                LoggingService.LogError(ex.ToString());
                monitor.ReportRuntimeError(null, ex);
                success = false;
            } finally {
                monitor.FinishTestRun();
                runThread = null;
            }
            lock (this) {
                if (waitEvent != null)
                {
                    waitEvent.Set();
                }
            }
            if (Completed != null)
            {
                Completed(this);
            }
        }
Ejemplo n.º 2
0
        void RunTests()
        {
            try {
                NUnitService.ResetResult(test);

                TestContext ctx = new TestContext(monitor, resultsPad, context, DateTime.Now);
                test.Run(ctx);
                test.SaveResults();
            } catch (Exception ex) {
                LoggingService.LogError(ex.ToString());
                monitor.ReportRuntimeError(null, ex);
            } finally {
                monitor.FinishTestRun();
            }
        }