public void CalculatePaymentBothOwned() { var expectedPayment = dice.RollResults * 10; utility1.Land(owner); utility2.Land(owner); var actualPayment = utility1.CalculatePayment(player); Assert.AreEqual(expectedPayment, actualPayment); }
public void PlayerLandsOnUnownedUtility_PurchasesIt() { var cashBeforeVisit = banker.GetPlayerBalance(player); water.Land(player); Assert.AreEqual(((IOwnableProperty)water).Price, cashBeforeVisit - banker.GetPlayerBalance(player)); Assert.IsTrue(player.OwnsProperty(water as IOwnableProperty)); }