private SetError ( |
||
error | ||
Результат | void |
internal void SetError(Exception error)
{
_checkpoints[_checkpoints.Count - 1].Error = error;
}
private static bool ExecuteWithExceptionHandling(Action action, TestContext testContext) { bool result = false; try { action.Invoke(); result = true; } catch (Exception ex) { testContext.SetError(ex); } return result; }