Ejemplo n.º 1
0
        public bool SubmitAnswer(string answer)
        {
            if (currentItem == null)
            {
                throw new InvalidOperationException();
            }

            bool correct = new AnswerChecker().IsAcceptable(answer, CurrentItem.Definition);

            CompleteAttempt(correct);
            return(correct);
        }
Ejemplo n.º 2
0
        public bool SubmitAnswer(string answer)
        {
            if (currentItem == null)
                throw new InvalidOperationException();

            bool correct = new AnswerChecker().IsAcceptable(answer, CurrentItem.Definition);
            CompleteAttempt(correct);
            return correct;
        }