public void ShouldThrow(Criterion criterion, Exception exception) { _criterionToCauseException = criterion; _exceptionToThrow = exception; }
public void Run(Criterion criterion, ScenarioContext scenarioContext, IExecutionContextFactory executionContextFactory) { if (criterion == _criterionToCauseException) throw _exceptionToThrow; _criteriaRun.Add(criterion); }