public void GetUserScore_UserExistsWithScore0_ReturnsScore() { ScoreBoard board = new ScoreBoard(); board.AddScore("JamesW", 0); int result = board.GetUserScore("JamesW"); Assert.AreEqual(0, result); }
public void GetUserScore_UserExistsWithScore1ThenScores1_Returns2() { ScoreBoard board = new ScoreBoard(); board.AddScore("JamesW", 1); board.AddScore("JamesW", 1); int result = board.GetUserScore("JamesW"); Assert.AreEqual(2, result); }