コード例 #1
0
        void backgroundRunner_CaseFail(object sender, CaseFailEventArgs e)
        {
            ++caseCount;
            progress += delta;
            failed    = true;
            services.EventBus.FireEvent(this, new StatusEventArgs(Resources.StatusRunning, true, progress));
            services.EventBus.FireEvent(this, new TestStateEventArgs(TestState.Fail));

            services.TestView.SetCaseState(e.Suite, e.Case, TestState.Fail);
            services.TestView.AddCaseResult(e.Suite, e.Case, e.Reason, e.Filename, e.LineNumber, TestState.Fail);
        }
コード例 #2
0
ファイル: TestPresenter.cs プロジェクト: jdmclark/nullunit
        void backgroundRunner_CaseFail(object sender, CaseFailEventArgs e)
        {
            ++caseCount;
            progress += delta;
            failed = true;
            services.EventBus.FireEvent(this, new StatusEventArgs(Resources.StatusRunning, true, progress));
            services.EventBus.FireEvent(this, new TestStateEventArgs(TestState.Fail));

            services.TestView.SetCaseState(e.Suite, e.Case, TestState.Fail);
            services.TestView.AddCaseResult(e.Suite, e.Case, e.Reason, e.Filename, e.LineNumber, TestState.Fail);
        }
コード例 #3
0
ファイル: BackgroundRunner.cs プロジェクト: jdmclark/nullunit
 void onCaseFail(object sender, CaseFailEventArgs e)
 {
     if (CaseFail != null)
     {
         CaseFail.Invoke(sender, e);
     }
 }