Exemple #1
0
        /// <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;
            }
        }
Exemple #2
0
 public void Pass(T item)
 {
     OnPass.Invoke(this, item);
 }
Exemple #3
0
 private void btnPassModal_Click(object sender, System.EventArgs e)
 {
     OnPass?.Invoke(true, tbValue.Text);
 }