public void TestGenerateWoolWithSettlementsThrowsWhenBankHasInsufficientResources() { var target = new Player(); target.incrementSettlements(); target.incrementSettlements(); target.incrementSettlements(); target.incrementSettlements(); target.incrementSettlements(); Assert.AreEqual(0, target.getSettlementsRemaining()); target.generateWool(); target.generateWool(); target.generateWool(); Assert.AreEqual(15, target.getHand().getWool()); target.generateWool(); }
public void TestGenerateResourcesWithOnlySettlements() { var target = new Player(); target.incrementSettlements(); target.incrementSettlements(); Assert.AreEqual(3, target.getSettlementsRemaining()); target.generateBrick(); target.generateGrain(); target.generateLumber(); target.generateOre(); target.generateWool(); Assert.AreEqual(2, target.getHand().getBrick()); Assert.AreEqual(2, target.getHand().getGrain()); Assert.AreEqual(2, target.getHand().getLumber()); Assert.AreEqual(2, target.getHand().getOre()); Assert.AreEqual(2, target.getHand().getWool()); }