Mercurial > repos > IBDev-IBBoard.WarFoundry.API.Tests
changeset 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 | 17c5030485dc |
children | b053872f1dce |
files | API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
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() {