Ejemplo n.º 1
0
        public void TestPayrent()
        {
            TradableProperty tradableProperty = new TradableProperty();
            Player           player           = new Player("Tom");
            Player           player2          = new Player("Jerry");

            tradableProperty.setOwner(ref player2);
            tradableProperty.payRent(ref player);
            Assert.AreEqual(1450, player.getBalance());
            Assert.AreEqual(1550, tradableProperty.getOwner().getBalance());
        }