# HG changeset patch # User IBBoard # Date 1302364149 0 # Node ID 779ad76c26445d9395cc9b580563f0faa1585866 # Parent 6571b6483d2d4b5b3af62cb6ce69524e497cb510 Re #27: Unit requirements * Add first test for getting requirements from race diff -r 6571b6483d2d -r 779ad76c2644 API/Objects/RaceTests.cs --- 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)); } } }