private void CheckAllScores(IGameScore game)
        {
            var highestScore = Math.Max(player1Score, player2Score);

            for (var i = 0; i < highestScore; i++)
            {
                if (i < player1Score)
                {
                    game.winPoint(player1Name);
                }
                if (i < player2Score)
                {
                    game.winPoint(player2Name);
                }
            }

            Assert.AreEqual(expectedScore, game.getCurrentScore());
        }
示例#2
0
 public string GetScore()
 {
     return(currentGameScore.getCurrentScore());
 }