public void Verify() { try { TestRunner.Verify(ActionDescriptionBuilder.BuildFor(_actionUnderTest), _parameterActions, () => _performAction(), _dependencyActions, _assertions); } catch (Exception e) { Exception result = null; bool succeeded = true; try { result = new ExceptionRewriter().RewriteStacktrace(e); } catch { succeeded = false; } if (!succeeded) { throw; } throw result; } }
public void Verify() { try { TestRunner.Verify(ActionDescriptionBuilder.BuildFor(_actionUnderTest), _parameterActions, () => _performAction(), _dependencyActions, _assertions); } catch (Exception e) { throw new AssertionException(e); } }
protected static string BuildDescription(Action action, string actionTypeDescription) { return(actionTypeDescription + " " + ActionDescriptionBuilder.BuildFor(action, actionTypeDescription)); }
public DefaultTestStep(Action action) : this() { Description = ActionDescriptionBuilder.BuildFor(action); Action = action; }