changeset 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 0676f6a1ee9d
children 29e81f10bb8b
files API/Objects/UnitEquipmentItemTest.cs
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
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()]