public void TestGenerateWoolWithCitiesThrowsWhenBankHasInsufficientResources() { var target = new Player(); target.incrementCities(); target.incrementCities(); target.incrementCities(); target.incrementCities(); Assert.AreEqual(0, target.getCitiesRemaining()); target.generateWool(); target.generateWool(); Assert.AreEqual(16, target.getHand().getWool()); target.generateWool(); }
public void TestGenerateResourcesWithOnlyCities() { var target = new Player(); target.incrementCities(); target.incrementCities(); Assert.AreEqual(2, target.getCitiesRemaining()); target.generateBrick(); target.generateGrain(); target.generateLumber(); target.generateOre(); target.generateWool(); Assert.AreEqual(4, target.getHand().getBrick()); Assert.AreEqual(4, target.getHand().getGrain()); Assert.AreEqual(4, target.getHand().getLumber()); Assert.AreEqual(4, target.getHand().getOre()); Assert.AreEqual(4, target.getHand().getWool()); }