# HG changeset patch # User IBBoard # Date 1278248121 0 # Node ID 6f638d6f400f4d475e34025cda7d64464c33a74e # Parent a9163f8dfba14dba3cade1264f61150ef0ad2cc2 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 diff -r a9163f8dfba1 -r 6f638d6f400f API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs --- 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")); }