diff API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs @ 239:370bec16a364 default tip

Add initial testing for equipment with type (incomplete)
author IBBoard <dev@ibboard.co.uk>
date Sun, 16 Oct 2016 20:29:35 +0100
parents e173c5512067
children
line wrap: on
line diff
--- a/API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs	Sun Apr 28 19:32:38 2013 +0100
+++ b/API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs	Sun Oct 16 20:29:35 2016 +0100
@@ -408,6 +408,16 @@
 			Assert.That(race.GetUnitTypes(race.GetCategory("cat1")), Has.Member(unitType3));
 		}
 
+		[Test]
+		public void TestEquipmentTypeLoading()
+		{
+			SetDefaultGameSystem();
+			Race race = SingleXmlObjectLoader.LoadRaceFromXML(WarFoundryXmlFactory.GetFactory(), new FileInfo("testdata/equipment-groups/equipment-with-type.racex"));
+			UnitType unitType = race.GetUnitType("Empire1");
+			Assert.That(unitType, Is.Not.Null);
+			//TODO: Finish testing
+		}
+
 		private void TestFileValidationFailure(string filePath)
 		{
 			SetDefaultGameSystem();