public void TestThatHandHasDevelopmentCardResources_Average() { Hand hand = new Hand(); hand.modifyWool(5); hand.modifyGrain(5); hand.modifyOre(5); Assert.True(hand.hasDevCardResources()); }
public void TestThatHandHasDevelopmentCardResources_Boundary() { Hand hand = new Hand(); // At first it does not have sufficient resources Assert.False(hand.hasDevCardResources()); // Now give it the necessary resources hand.modifyWool(1); hand.modifyGrain(1); hand.modifyOre(1); Assert.True(hand.hasDevCardResources()); }
public void TestGetResource() { var target = new Hand(); target.modifyBrick(2); target.modifyGrain(3); target.modifyLumber(4); target.modifyOre(5); target.modifyWool(6); Assert.AreEqual(2, target.getResource("brick")); Assert.AreEqual(3, target.getResource("grain")); Assert.AreEqual(4, target.getResource("lumber")); Assert.AreEqual(5, target.getResource("ore")); Assert.AreEqual(6, target.getResource("wool")); }