comparison 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
comparison
equal deleted inserted replaced
126:6571b6483d2d 127:779ad76c2644
1 // This file (RaceTests.cs) is a part of the IBBoard.WarFoundry.API.Tests project and is copyright 2011 IBBoard 1 // This file (RaceTests.cs) is a part of the IBBoard.WarFoundry.API.Tests project and is copyright 2011 IBBoard
2 // 2 //
3 // 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. 3 // 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.
4 using System; 4 using System;
5 using NUnit.Framework; 5 using NUnit.Framework;
6 using IBBoard.WarFoundry.API.Objects.Mock;
7 using NUnit.Framework.SyntaxHelpers;
6 8
7 namespace IBBoard.WarFoundry.API.Objects 9 namespace IBBoard.WarFoundry.API.Objects
8 { 10 {
9 [TestFixture()] 11 [TestFixture()]
10 public class RaceTests 12 public class RaceTests
11 { 13 {
12 [Test()] 14 [Test()]
13 public void TestCase() 15 public void TestRaceWithNoUnitTypesHasNoRequirements()
14 { 16 {
17 Assert.That(new MockRace().GetRequirements(), Has.Count(0));
15 } 18 }
16 } 19 }
17 } 20 }
18 21