changeset 127:779ad76c2644

Re #27: Unit requirements * Add first test for getting requirements from race
author IBBoard <dev@ibboard.co.uk>
date Sat, 09 Apr 2011 15:49:09 +0000
parents 6571b6483d2d
children 7ca536ccd27a
files API/Objects/RaceTests.cs
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/API/Objects/RaceTests.cs	Sat Apr 09 15:14:33 2011 +0000
     1.2 +++ b/API/Objects/RaceTests.cs	Sat Apr 09 15:49:09 2011 +0000
     1.3 @@ -2,7 +2,9 @@
     1.4  // 
     1.5  // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license.
     1.6  using System;
     1.7 -using NUnit.Framework;
     1.8 +using NUnit.Framework;
     1.9 +using IBBoard.WarFoundry.API.Objects.Mock;
    1.10 +using NUnit.Framework.SyntaxHelpers;
    1.11  
    1.12  namespace IBBoard.WarFoundry.API.Objects
    1.13  {
    1.14 @@ -10,8 +12,9 @@
    1.15  	public class RaceTests
    1.16  	{
    1.17  		[Test()]
    1.18 -		public void TestCase()
    1.19 -		{
    1.20 +		public void TestRaceWithNoUnitTypesHasNoRequirements()
    1.21 +		{
    1.22 +			Assert.That(new MockRace().GetRequirements(), Has.Count(0));
    1.23  		}
    1.24  	}
    1.25  }