public bool SubmitAnswer(string answer) { if (currentItem == null) { throw new InvalidOperationException(); } bool correct = new AnswerChecker().IsAcceptable(answer, CurrentItem.Definition); CompleteAttempt(correct); return(correct); }
public bool SubmitAnswer(string answer) { if (currentItem == null) throw new InvalidOperationException(); bool correct = new AnswerChecker().IsAcceptable(answer, CurrentItem.Definition); CompleteAttempt(correct); return correct; }