/// <summary> /// Invokes the proper status event based on the execution context's result status /// </summary> /// <param name="executionContext"></param> protected void InvokeStatusEvent(ExecutionContext executionContext) { switch (executionContext.Result.Status) { case TestStatus.Pass: OnPass.Invoke(executionContext); break; case TestStatus.Fail: OnFail.Invoke(executionContext); break; case TestStatus.Error: OnError.Invoke(executionContext); break; case TestStatus.Ignore: OnIgnore.Invoke(executionContext); break; } }
public void Pass(T item) { OnPass.Invoke(this, item); }
private void btnPassModal_Click(object sender, System.EventArgs e) { OnPass?.Invoke(true, tbValue.Text); }