Ejemplo n.º 1
0
        public void LandUpdatesPlayerLocation()
        {
            var expectedLocation = 0;

            player.Location = 35;
            go.Land(player);

            Assert.AreEqual(expectedLocation, player.Location);
        }
Ejemplo n.º 2
0
        public void PlayerLandsOnGoTwiceResultsIn400ExtraDollars()
        {
            var cashBeforeGo = banker.GetPlayerBalance(playerCar);
            var go           = new Go(0, banker, "Go");

            go.Land(playerCar);
            go.Land(playerCar);

            Assert.AreEqual(400, banker.GetPlayerBalance(playerCar) - cashBeforeGo);
        }