Mercurial > repos > IBDev-IBBoard.WarFoundry.API.Tests
diff API/Objects/UnitEquipmentItemTest.cs @ 28:2395dc131401
* Update unit tests to match change to default min/max limits of equipment items
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 30 Oct 2009 20:48:17 +0000 |
parents | beaf7a48a93f |
children |
line wrap: on
line diff
--- a/API/Objects/UnitEquipmentItemTest.cs Wed Oct 28 20:52:50 2009 +0000 +++ b/API/Objects/UnitEquipmentItemTest.cs Fri Oct 30 20:48:17 2009 +0000 @@ -13,11 +13,13 @@ public class UnitEquipmentItemTest { [Test()] - public void DefaultMinMaxNumberLimitsAreUnlimited() + public void DefaultMinMaxNumberLimitsAre100Percent() { UnitEquipmentItem item = new UnitEquipmentItem(new MockEquipmentItem(), new MockUnitType()); - Assert.IsTrue(item.MinLimit is UnlimitedLimit); - Assert.IsTrue(item.MaxLimit is UnlimitedLimit); + Assert.IsTrue(item.MinLimit is IPercentageLimit); + Assert.AreEqual(100, ((IPercentageLimit)item.MinLimit).Percentage); + Assert.IsTrue(item.MaxLimit is IPercentageLimit); + Assert.AreEqual(100, ((IPercentageLimit)item.MaxLimit).Percentage); } [Test()]