示例#1
0
        public void VisitUpdatesPlayerLocation()
        {
            var expectedLocation = 0;

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

            Assert.AreEqual(expectedLocation, player.Location);
        }
示例#2
0
        public void PlayerMovesPassGo_Collects200Dollars()
        {
            var cashBeforeGo = banker.GetPlayerBalance(playerCar);
            var go           = new Go(0, banker, "Go");

            go.Visit(playerCar);

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