Ejemplo n.º 1
0
        public void CalculatePaymentBothOwned()
        {
            var expectedPayment = dice.RollResults * 10;

            utility1.Land(owner);
            utility2.Land(owner);

            var actualPayment = utility1.CalculatePayment(player);

            Assert.AreEqual(expectedPayment, actualPayment);
        }
Ejemplo n.º 2
0
        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));
        }