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 diff
     1.1 --- a/API/Objects/UnitTypeTest.cs	Mon Mar 05 20:34:45 2012 +0000
     1.2 +++ b/API/Objects/UnitTypeTest.cs	Tue Mar 06 20:32:19 2012 +0000
     1.3 @@ -67,10 +67,10 @@
     1.4  			unitType.MinNumber = 1;
     1.5  			unitType.MaxNumber = 2;
     1.6  			Assert.That(unitType.GetRequirements(), Has.Length(2));
     1.7 -			RaceRequiresNoMoreThanNUnitsRequirement maxLimit = new RaceRequiresNoMoreThanNUnitsRequirement(mockRace, unitType);
     1.8 +			RaceRequiresNoMoreThanNUnitsRequirement maxLimit = new RaceRequiresNoMoreThanNUnitsRequirement(mockRace);
     1.9  			maxLimit.AddUnitTypeRequirement(unitType, 2);
    1.10  			Assert.That(unitType.GetRequirements(), Has.Member(maxLimit));
    1.11 -			RaceRequiresAtLeastNUnitsRequirement minLimit = new RaceRequiresAtLeastNUnitsRequirement(mockRace, unitType);
    1.12 +			RaceRequiresAtLeastNUnitsRequirement minLimit = new RaceRequiresAtLeastNUnitsRequirement(mockRace);
    1.13  			minLimit.AddUnitTypeRequirement(unitType, 1);
    1.14  			Assert.That(unitType.GetRequirements(), Has.Member(minLimit));
    1.15  		}