Esempio n. 1
0
        public bool IsSatisfiedBy(IStepRepository stepRepository, SkipContext skipContext)
        {
            if (SkipLimit == 0)
                return false;

            int exceptionCount = stepRepository.GetExceptionCount(skipContext);
            if (exceptionCount >= SkipLimit || !_skippableExceptions.Contains(skipContext.GetExceptionType()))
                return false;

            stepRepository.SaveExceptionInfo(skipContext, exceptionCount);
            return true;
        }
Esempio n. 2
0
        public bool IsSatisfiedBy(IStepRepository stepRepository, SkipContext skipContext)
        {
            if (SkipLimit == 0)
            {
                return(false);
            }

            int exceptionCount = stepRepository.GetExceptionCount(skipContext);

            if (exceptionCount >= SkipLimit || !_skippableExceptions.Contains(skipContext.GetExceptionType()))
            {
                return(false);
            }

            stepRepository.SaveExceptionInfo(skipContext, exceptionCount);
            return(true);
        }