Exemple #1
0
        public void GivenPlayerScoreHasNotChangedYet_AndPlayerScoreIsIncremented_ItIsIncremented()
        {
            GameModel model       = new GameModel(1, 1);
            GameLogic logic       = new GameLogic(model);
            int       scoreBefore = model.player.score;

            logic.AddAmountToPlayerScore(1);
            int scoreAfter = model.player.score;

            Assert.That(scoreBefore < scoreAfter);
        }