コード例 #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);
            }
        }
コード例 #2
0
ファイル: NUnitService.cs プロジェクト: vvarshne/monodevelop
        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();
            }
        }