Exemplo n.º 1
0
 public void GetScoreTest()
 {
     _answerChecker = _model.GetAnswerChecker();
     _model.ClearTheResult();
     Assert.AreEqual(0, _model.GetScore(10, 1));
     _answerChecker.SetCorrectNumber(5);
     Assert.AreEqual(50, _model.GetScore(10, 0));
     Assert.AreEqual(48, _model.GetScore(10, 2));
 }
Exemplo n.º 2
0
 public void CalculateScoreTest()
 {
     _answerChecker.ClearTheResult();
     _answerChecker.CalculateScore(10, 1);
     Assert.AreEqual(0, _answerChecker.GetScore());
     _answerChecker.SetCorrectNumber(5);
     _answerChecker.CalculateScore(10, 0);
     Assert.AreEqual(50, _answerChecker.GetScore());
     _answerChecker.CalculateScore(10, 2);
     Assert.AreEqual(48, _answerChecker.GetScore());
 }