changeset 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 b64f6158ac85
children eb62004d8a35
files API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs testdata/xml-race-factory/different-extra-data-key.racex
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
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()]
--- a/testdata/xml-race-factory/different-extra-data-key.racex	Wed Jan 26 20:05:51 2011 +0000
+++ b/testdata/xml-race-factory/different-extra-data-key.racex	Wed Jan 26 20:10:02 2011 +0000
@@ -14,7 +14,7 @@
 				<stat name="Ld">9</stat>
 			</stats>
 			<extraData>
-				<data id="data1"></data>
+				<data id="data1">SomeStringHere</data>
 				<data id="data2"></data>
 			</extraData>
 		</unit>