コード例 #1
0
        public MultiplicationResult(MultiplicationProblem problem, MultiplicationEngine engine)
        {
            _engine = engine;
            Problem = problem;

            IsCorrect = _engine.Evaluate(Problem);
        }
コード例 #2
0
 public bool Evaluate(MultiplicationProblem problem)
 {
     return(problem.Answer == problem.Multiple * problem.Multiplier);
 }