public void PlayerWith1800LandsOnIncomeTax_Lose180Dollars() { banker.Credit(player, 300); var cashBeforeTurn = banker.GetPlayerBalance(player); board.AdvancePlayerOnBoard(player, 4); Assert.AreEqual(4, player.Location); Assert.AreEqual(180, cashBeforeTurn - banker.GetPlayerBalance(player)); }
public void PlayerLandsOnLuxuryTax_Loses75Dollars() { banker.Credit(player, 175); var cashBeforeTurn = banker.GetPlayerBalance(player); board.AdvancePlayerOnBoard(player, 38); Assert.AreEqual(38, player.Location); Assert.AreEqual(75, cashBeforeTurn - banker.GetPlayerBalance(player)); }
public void LandDebitsPlayerAccount200() { banker.Credit(player, 2000); var expectedTax = 200; var beforeLandCash = banker.GetPlayerBalance(player); incomeTax.Land(player); Assert.AreEqual(expectedTax, beforeLandCash - banker.GetPlayerBalance(player)); }
public void CreditAddMoneyToPlayerAccount() { banker.Credit(player, 50); Assert.AreEqual(550, banker.GetPlayerBalance(player)); }