Esempio n. 1
0
        public void PlayerWithZeroBalanceLandsOnIncomeTax_BalanceIsLeftAtZero()
        {
            banker.Debit(player, 1500);
            var cashBeforeTurn = banker.GetPlayerBalance(player);

            board.AdvancePlayerOnBoard(player, 4);

            Assert.AreEqual(4, player.Location);
            Assert.AreEqual(0, cashBeforeTurn - banker.GetPlayerBalance(player));
        }
Esempio n. 2
0
 private void SentencedPlayerPaysToGetOut(IPlayer player)
 {
     banker.Debit(player, 50);
     ReleasePlayerFromJail(player);
 }
Esempio n. 3
0
 public void DebitSubtractsMoneyFromPlayerAccount()
 {
     banker.Debit(player, 50);
     Assert.AreEqual(450, banker.GetPlayerBalance(player));
 }