public void TransferCorrectlyTransfersMoneyFromOnePlayerToAnother() { var receiver = new Player("receiver"); banker.AddAccount(receiver, 500); banker.SubmitPayment(player, receiver, 55); Assert.AreEqual(445, banker.GetPlayerBalance(player)); Assert.AreEqual(555, banker.GetPlayerBalance(receiver)); }
public void CarPaysHors150InRent() { bank.AddAccount(car, 1500); bank.AddAccount(horse, 1500); bank.SubmitPayment(car, horse, 150); Assert.AreEqual(1350, bank.GetPlayerBalance(car)); Assert.AreEqual(1650, bank.GetPlayerBalance(horse)); }