diff API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs @ 80:102887bd063b

Fixes #139: Load additional data for units * Already done and loaded * Minor change to unit test to make sure we're loading something and not just returning empty strings
author IBBoard <dev@ibboard.co.uk>
date Wed, 26 Jan 2011 20:10:02 +0000
parents d1d79adcb11d
children 1de37b5c8107
line wrap: on
line diff
--- a/API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs	Wed Jan 26 20:05:51 2011 +0000
+++ b/API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs	Wed Jan 26 20:10:02 2011 +0000
@@ -152,7 +152,7 @@
 			FileInfo raceFile = new FileInfo("testdata/xml-race-factory/different-extra-data-key.racex");
 			Race race = SingleXmlObjectLoader.LoadRaceFromXML(WarFoundryXmlFactory.GetFactory(), raceFile);
 			UnitType unitType = race.GetUnitType("Empire1");
-			Assert.That(unitType.GetExtraData("data1"), Is.EqualTo(""));
+			Assert.That(unitType.GetExtraData("data1"), Is.EqualTo("SomeStringHere"));
 		}
 		
 		[Test()]