public void ExpectScoreboardIsInTopScoresMethodToToreturnTrueWhenTopScorProvided() { var scoreboard = new Scoreboard(); var playerName = "Test Player"; var maxCountTopScores = Constants.ScoreboardMaxCount; for (int moves = 1; moves <= maxCountTopScores; moves++) { scoreboard.Add(moves, playerName); } var expecterIsInTopScore = scoreboard.IsInTopScores(maxCountTopScores - 1); Assert.IsTrue(expecterIsInTopScore); }
public void ExpectScoreboardIsInTopScoresMethodToToreturnTrueWhenLessThanMaxCountOfScoresAreInTopScores() { var scoreboard = new Scoreboard(); var moves = 5; var expecterIsInTopScore = scoreboard.IsInTopScores(moves); Assert.IsTrue(expecterIsInTopScore); }