changeset 218:d60d93b787dc

Re #379: Fix requirements * Fix unit test - we had two limits in one requirement, not just one
author IBBoard <dev@ibboard.co.uk>
date Tue, 06 Mar 2012 20:32:19 +0000
parents 9bf34e88da89
children f951595143a9
files API/Objects/UnitTypeTest.cs
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/API/Objects/UnitTypeTest.cs	Mon Mar 05 20:34:45 2012 +0000
+++ b/API/Objects/UnitTypeTest.cs	Tue Mar 06 20:32:19 2012 +0000
@@ -67,10 +67,10 @@
 			unitType.MinNumber = 1;
 			unitType.MaxNumber = 2;
 			Assert.That(unitType.GetRequirements(), Has.Length(2));
-			RaceRequiresNoMoreThanNUnitsRequirement maxLimit = new RaceRequiresNoMoreThanNUnitsRequirement(mockRace, unitType);
+			RaceRequiresNoMoreThanNUnitsRequirement maxLimit = new RaceRequiresNoMoreThanNUnitsRequirement(mockRace);
 			maxLimit.AddUnitTypeRequirement(unitType, 2);
 			Assert.That(unitType.GetRequirements(), Has.Member(maxLimit));
-			RaceRequiresAtLeastNUnitsRequirement minLimit = new RaceRequiresAtLeastNUnitsRequirement(mockRace, unitType);
+			RaceRequiresAtLeastNUnitsRequirement minLimit = new RaceRequiresAtLeastNUnitsRequirement(mockRace);
 			minLimit.AddUnitTypeRequirement(unitType, 1);
 			Assert.That(unitType.GetRequirements(), Has.Member(minLimit));
 		}