示例#1
0
 public void scoreQuestion(TimeSpan time, Question newQuestion, long answer)
 {
     questions.Add(newQuestion);
     if (answer.Equals("?"))
     {
         //user didn't answer
         answers.Add(ScoreFactory.NoAnswer());
     }
     else
     {
         answers.Add(ScoreFactory.Answer(time, newQuestion.verify(answer)));
     }
 }