コード例 #1
0
 public void ShouldThrow(Criterion criterion, Exception exception)
 {
     _criterionToCauseException = criterion;
     _exceptionToThrow = exception;
 }
コード例 #2
0
        public void Run(Criterion criterion, ScenarioContext scenarioContext, IExecutionContextFactory executionContextFactory)
        {
            if (criterion == _criterionToCauseException) throw _exceptionToThrow;

            _criteriaRun.Add(criterion);
        }