diff API/Util/UnitEquipmentUtilTest.cs @ 172:c026c02583ca

* Remove MockArmy.GetMockArmy as it only causes problems in unit tests * Remove MockArmyCategory as MockArmy change would make it do nothing special * Close streams as well as files to fix Windows unit test errors
author IBBoard <dev@ibboard.co.uk>
date Sat, 24 Sep 2011 11:46:20 +0100
parents 9bf542b76de2
children bd38c32fb1a9
line wrap: on
line diff
--- a/API/Util/UnitEquipmentUtilTest.cs	Tue Sep 13 20:49:06 2011 +0100
+++ b/API/Util/UnitEquipmentUtilTest.cs	Sat Sep 24 11:46:20 2011 +0100
@@ -430,7 +430,7 @@
 		
 		private Unit GetUnit (UnitType unitType)
 		{
-			return new Unit ("unit", "Test Unit", 15, unitType, new MockArmyCategory (unitType.MainCategory));
+			return new Unit ("unit", "Test Unit", 15, unitType, new ArmyCategory(new MockArmy(), unitType.MainCategory));
 		}
 	}
 }