Ejemplo n.º 1
0
 public void added_20_scores_to_highscores_result_10_scores()
 {
     var highScores = new HighScores();
     for (int i = 0; i < 20; i++)
     {
         highScores.Add(new Score(i));
     }
     Assert.AreEqual(10, highScores.Count());
 }
Ejemplo n.º 2
0
 public void added_20_scores_to_highscores_result_10_scores()
 {
     var highScores = new HighScores();
     for (int i = 0; i < 20; i++)
     {
         highScores.Add(new Score(i.ToString(CultureInfo.InvariantCulture), i));
     }
     Assert.AreEqual(10, highScores.Count());
 }
Ejemplo n.º 3
0
 public void add_one_score_results_one_score_in_highscores()
 {
     var highScores = new HighScores();
     highScores.Add(new Score(777));
     Assert.AreEqual(1, highScores.Count());
 }