/// <summary> /// Handles the completion of a test method. /// </summary> /// <param name="sender">The source object.</param> /// <param name="e">The event arguments.</param> private void OnTestMethodCompleted(object sender, TestMethodCompletedEventArgs e) { ScenarioResult result = e.Result; if (result.Result != TestOutcome.Passed) { TestMethodData tmd = _model.GetMethodModel( e.Result.TestMethod, _model.GetClassModel(e.Result.TestClass)); } }
/// <summary> /// Process the completion of test methods. /// </summary> /// <param name="sender">The source object.</param> /// <param name="e">The event data.</param> private void OnTestMethodCompleted(object sender, TestMethodCompletedEventArgs e) { ScenarioResult result = e.Result; if (result == null) { throw new InvalidOperationException("The result was not present."); } ProcessResult(result); }