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 diff
     1.1 --- a/API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs	Sat Jul 03 19:54:42 2010 +0000
     1.2 +++ b/API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs	Sun Jul 04 12:55:21 2010 +0000
     1.3 @@ -149,8 +149,8 @@
     1.4  			SetDefaultGameSystem();
     1.5  			FileInfo raceFile = new FileInfo("testdata/xml-race-factory/single-unit-with-valid-equipment-slot-reference.racex");
     1.6  			Race race = SingleXmlObjectLoader.LoadRaceFromXML(WarFoundryXmlFactory.GetFactory(), raceFile);
     1.7 -			UnitType unitType = race.GetUnitType("General");
     1.8 -			UnitEquipmentItem unitEquipmentItem = unitType.GetEquipmentItem("equip1");
     1.9 +			UnitType unitType = race.GetUnitType("Empire1");
    1.10 +			UnitEquipmentItem unitEquipmentItem = unitType.GetEquipmentItem("Empire1equip1");
    1.11  			Assert.That(unitEquipmentItem.SlotName, Is.EqualTo("slot1"));
    1.12  		}
    1.13