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); }
void onCaseFail(object sender, CaseFailEventArgs e) { if (CaseFail != null) { CaseFail.Invoke(sender, e); } }