public void LuxuryTaxTest() { var player = new Player("name"); var banker = new Banker(new[] { player }); var luxuryTax = new LuxuryTax(banker); var playerMoney = banker.Money[player]; luxuryTax.LandOn(player); Assert.AreEqual(playerMoney - LuxuryTax.LUXURY_TAX, banker.Money[player]); }
public void Setup() { var players = new[] { new Player("Player") }; var dice = new ControlledDice(); var realEstateHandler = FakeHandlerFactory.CreateEmptyRealEstateHandler(players); var banker = new Banker(players); var boardHandler = FakeHandlerFactory.CreateBoardHandlerForFakeBoard(players, realEstateHandler, banker); var jailHandler = new JailHandler(dice, boardHandler, banker); var deckFactory = new DeckFactory(players, jailHandler, boardHandler, realEstateHandler, banker); deck = deckFactory.BuildCommunityChestDeck(); }
public void Setup() { var players = new[] { new Player("Player") }; var banker = new Banker(players); var realEstateHandler = new OwnableHandler(new Dictionary<Int32, OwnableSpace>(), banker); var boardHandler = FakeHandlerFactory.CreateBoardHandlerForFakeBoard(players, realEstateHandler, banker); var dice = new ControlledDice(); var jailHandler = new JailHandler(dice, boardHandler, banker); var deckFactory = new DeckFactory(players, jailHandler, boardHandler, realEstateHandler, banker); deck = deckFactory.BuildChanceDeck(dice); }