예제 #1
0
        private void ProcessExceptions(ExceptionCollector exceptionCollector)
        {
            var exception = exceptionCollector.CollectFor(_result.Status, _result.GetSubSteps());

            if (exception == null)
            {
                return;
            }

            _result.UpdateException(exception);

            throw new StepExecutionException(exception, _result.Status);
        }
예제 #2
0
        private void ProcessExceptions()
        {
            var exception = _exceptionCollector.CollectFor(_result.Status, _result.GetSubSteps());

            if (exception == null)
            {
                return;
            }

            _result.UpdateException(exception);
            if (_stepContext.ShouldAbortSubStepExecution(exception))
            {
                throw new StepExecutionException(exception, _result.Status);
            }
        }
예제 #3
0
 private void UpdateStepStatus()
 {
     _result.UpdateException(null);
     _result.SetStatus(_result.GetSubSteps().GetMostSevereOrNull()?.Status ?? ExecutionStatus.Passed);
 }