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 diff
     1.1 --- a/API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs	Sat Jul 23 19:54:37 2011 +0000
     1.2 +++ b/API/Factories/Xml/WarFoundryXmlRaceFactoryTest.cs	Sat Jul 23 20:01:54 2011 +0000
     1.3 @@ -11,6 +11,7 @@
     1.4  using NUnit.Framework;
     1.5  using NUnit.Framework.SyntaxHelpers;
     1.6  using IBBoard.WarFoundry.API.Objects.Requirement;
     1.7 +using IBBoard.WarFoundry.API.Factories.Requirement;
     1.8  
     1.9  namespace IBBoard.WarFoundry.API.Factories.Xml
    1.10  {
    1.11 @@ -20,6 +21,12 @@
    1.12  	[TestFixture()]
    1.13  	public class WarFoundryXmlRaceFactoryTest
    1.14  	{
    1.15 +		[SetUp()]
    1.16 +		public void RegisterRequirementHandler()
    1.17 +		{
    1.18 +			WarFoundryLoader.RegisterRequirementFactory(new UnitRequiresAtLeastNUnitsRequirementFactory());
    1.19 +		}
    1.20 +
    1.21  		[TearDown()]
    1.22  		public void AfterTestCleanup()
    1.23  		{