Ejemplo n.º 1
0
        public void TestAuctionField()
        {
            Game        game   = new Game(new Player[] { new Player("XXX"), new Player("YYY") });
            StreetField field1 = ((StreetField)game.Fields[1]);

            game.StartAuction(new List <IRentableField> {
                field1
            });
            game.AuctionField(field1, new Dictionary <Player, int>
            {
                { game.Players[0], 100 },
                { game.Players[1], 200 }
            });
            game.FinishAuction();
            Assert.That(game.Players[1].OwnerShip[0].Name, Is.EqualTo(FieldNames.OldKentRoad));
            Assert.That(game.Players[1].Money, Is.EqualTo(1500 - 200));
        }