public void AddPlayerShouldHaveNoMoreTenPlayers() { for (int i = 0; i < Highscore.MaxPlayers + 10; i++) { Highscore.AddPlayer(new Player()); } Assert.AreEqual(Highscore.MaxPlayers, Highscore.Load().Count()); }
public void PreparePlayers() { this.highscore = new Highscore(); for (int i = 0; i < Highscore.MaxPlayers + 10; i++) { highscore.AddPlayer(new Player(i.ToString(), i + 100)); } }