Пример #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);
 }