diff API/Objects/RaceTests.cs @ 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 95dac00e9330
line wrap: on
line diff
--- a/API/Objects/RaceTests.cs	Sat Apr 09 15:14:33 2011 +0000
+++ b/API/Objects/RaceTests.cs	Sat Apr 09 15:49:09 2011 +0000
@@ -2,7 +2,9 @@
 // 
 // 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.
 using System;
-using NUnit.Framework;
+using NUnit.Framework;
+using IBBoard.WarFoundry.API.Objects.Mock;
+using NUnit.Framework.SyntaxHelpers;
 
 namespace IBBoard.WarFoundry.API.Objects
 {
@@ -10,8 +12,9 @@
 	public class RaceTests
 	{
 		[Test()]
-		public void TestCase()
-		{
+		public void TestRaceWithNoUnitTypesHasNoRequirements()
+		{
+			Assert.That(new MockRace().GetRequirements(), Has.Count(0));
 		}
 	}
 }