Пример #1
0
        public IEnumerable <IEvaluationResult> Execute(ISupposedNumber <TValue> parameter)
        {
            _distinctDigitsValidation.Execute(parameter);

            foreach (ISupposedDigit <TValue> supposedDigit in parameter.Digits)
            {
                yield return(_evaluateSupposedDigit.Execute(supposedDigit));
            }
        }
        public void Execute_Throws_WhenParameterHasDuplicatedDigits()
        {
            Action act = () => _instance.Execute(BuildWrongNumber());

            act.ShouldThrow <Exception>();
        }