public void TestModifyGrainThrowsWhenGreaterThan19() { var target = new Bank(); target.modifyResource("grain", 7); }
public void TestModifyGrainThrowsWhenLessThanZero() { var target = new Bank(); target.modifyResource("grain", -55); }
public void TestModifyBrickThrowsWhenGreaterThan19() { var target = new Bank(); target.modifyResource("brick", 35); }
public void TestModifyBrickThrowsWhenLessThanZero() { var target = new Bank(); target.modifyResource("brick", -160); }
public void TestModifyWoolThrowsWhenGreaterThan19() { var target = new Bank(); target.modifyResource("wool", 21); }
public void TestModifyWoolThrowsWhenLessThanZero() { var target = new Bank(); target.modifyResource("wool", -30); }
public void TestModifyResource() { var target = new Bank(); target.modifyResource("ore", -2); Assert.AreEqual(17, target.getOreRemaining()); target.modifyResource("wool", -10); Assert.AreEqual(9, target.getWoolRemaining()); target.modifyResource("lumber", -19); Assert.AreEqual(0, target.getLumberRemaining()); target.modifyResource("grain", -19); target.modifyResource("grain", 5); Assert.AreEqual(5, target.getGrainRemaining()); target.modifyResource("brick", -19); target.modifyResource("brick", 19); Assert.AreEqual(19, target.getBrickRemaining()); }
public void TestModifyOreThrowsWhenLessThanZero() { var target = new Bank(); target.modifyResource("ore", -20); }
public void TestModifyOreThrowsWhenGreaterThan19() { var target = new Bank(); target.modifyResource("ore", 2); }
public void TestModifyLumberThrowsWhenLessThanZero() { var target = new Bank(); target.modifyResource("lumber", -25); }
public void TestModifyLumberThrowsWhenGreaterThan19() { var target = new Bank(); target.modifyResource("lumber", 1); }