changeset 64:6f638d6f400f

Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type * Fix broken unit test by correcting IDs - unit equipment has composite ID of unit type and equipment ID and unit type has ID Empire1
author IBBoard <dev@ibboard.co.uk>
date Sun, 04 Jul 2010 12:55:21 +0000
parents a9163f8dfba1
children fa536aee66d7
files API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs	Sat Jul 03 19:54:42 2010 +0000
+++ b/API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs	Sun Jul 04 12:55:21 2010 +0000
@@ -149,8 +149,8 @@
 			SetDefaultGameSystem();
 			FileInfo raceFile = new FileInfo("testdata/xml-race-factory/single-unit-with-valid-equipment-slot-reference.racex");
 			Race race = SingleXmlObjectLoader.LoadRaceFromXML(WarFoundryXmlFactory.GetFactory(), raceFile);
-			UnitType unitType = race.GetUnitType("General");
-			UnitEquipmentItem unitEquipmentItem = unitType.GetEquipmentItem("equip1");
+			UnitType unitType = race.GetUnitType("Empire1");
+			UnitEquipmentItem unitEquipmentItem = unitType.GetEquipmentItem("Empire1equip1");
 			Assert.That(unitEquipmentItem.SlotName, Is.EqualTo("slot1"));
 		}