# HG changeset patch # User IBBoard # Date 1311451314 0 # Node ID d0b8c43f705f0e3396f29ea9988cf784c520df25 # Parent 17c5030485dc5a8c3fba217afd7d7a5c93f61537 Fixes #351: Add extensible requirement handling method * Register requirement factory for the tests diff -r 17c5030485dc -r d0b8c43f705f API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs --- 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() {