diff API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs @ 158:d0b8c43f705f

Fixes #351: Add extensible requirement handling method * Register requirement factory for the tests
author IBBoard <dev@ibboard.co.uk>
date Sat, 23 Jul 2011 20:01:54 +0000
parents 71b9364f0276
children 2b27447ae74e
line wrap: on
line diff
--- a/API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs	Sat Jul 23 19:54:37 2011 +0000
+++ b/API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs	Sat Jul 23 20:01:54 2011 +0000
@@ -11,6 +11,7 @@
 using NUnit.Framework;
 using NUnit.Framework.SyntaxHelpers;
 using IBBoard.WarFoundry.API.Objects.Requirement;
+using IBBoard.WarFoundry.API.Factories.Requirement;
 
 namespace IBBoard.WarFoundry.API.Factories.Xml
 {
@@ -20,6 +21,12 @@
 	[TestFixture()]
 	public class WarFoundryXmlRaceFactoryTest
 	{
+		[SetUp()]
+		public void RegisterRequirementHandler()
+		{
+			WarFoundryLoader.RegisterRequirementFactory(new UnitRequiresAtLeastNUnitsRequirementFactory());
+		}
+
 		[TearDown()]
 		public void AfterTestCleanup()
 		{