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 diff
     1.1 --- a/API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs	Wed Jan 26 20:05:51 2011 +0000
     1.2 +++ b/API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs	Wed Jan 26 20:10:02 2011 +0000
     1.3 @@ -152,7 +152,7 @@
     1.4  			FileInfo raceFile = new FileInfo("testdata/xml-race-factory/different-extra-data-key.racex");
     1.5  			Race race = SingleXmlObjectLoader.LoadRaceFromXML(WarFoundryXmlFactory.GetFactory(), raceFile);
     1.6  			UnitType unitType = race.GetUnitType("Empire1");
     1.7 -			Assert.That(unitType.GetExtraData("data1"), Is.EqualTo(""));
     1.8 +			Assert.That(unitType.GetExtraData("data1"), Is.EqualTo("SomeStringHere"));
     1.9  		}
    1.10  		
    1.11  		[Test()]
     2.1 --- a/testdata/xml-race-factory/different-extra-data-key.racex	Wed Jan 26 20:05:51 2011 +0000
     2.2 +++ b/testdata/xml-race-factory/different-extra-data-key.racex	Wed Jan 26 20:10:02 2011 +0000
     2.3 @@ -14,7 +14,7 @@
     2.4  				<stat name="Ld">9</stat>
     2.5  			</stats>
     2.6  			<extraData>
     2.7 -				<data id="data1"></data>
     2.8 +				<data id="data1">SomeStringHere</data>
     2.9  				<data id="data2"></data>
    2.10  			</extraData>
    2.11  		</unit>