Mercurial > repos > IBDev-IBBoard.WarFoundry.API.Tests
annotate 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 |
rev | line source |
---|---|
126
6571b6483d2d
* Set target framework to v2.0...AGAIN
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
1 // This file (RaceTests.cs) is a part of the IBBoard.WarFoundry.API.Tests project and is copyright 2011 IBBoard |
6571b6483d2d
* Set target framework to v2.0...AGAIN
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
2 // |
6571b6483d2d
* Set target framework to v2.0...AGAIN
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
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. |
6571b6483d2d
* Set target framework to v2.0...AGAIN
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
4 using System; |
127 | 5 using NUnit.Framework; |
6 using IBBoard.WarFoundry.API.Objects.Mock; | |
7 using NUnit.Framework.SyntaxHelpers; | |
126
6571b6483d2d
* Set target framework to v2.0...AGAIN
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
8 |
6571b6483d2d
* Set target framework to v2.0...AGAIN
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
9 namespace IBBoard.WarFoundry.API.Objects |
6571b6483d2d
* Set target framework to v2.0...AGAIN
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
10 { |
6571b6483d2d
* Set target framework to v2.0...AGAIN
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
11 [TestFixture()] |
6571b6483d2d
* Set target framework to v2.0...AGAIN
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
12 public class RaceTests |
6571b6483d2d
* Set target framework to v2.0...AGAIN
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
13 { |
6571b6483d2d
* Set target framework to v2.0...AGAIN
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
14 [Test()] |
127 | 15 public void TestRaceWithNoUnitTypesHasNoRequirements() |
16 { | |
17 Assert.That(new MockRace().GetRequirements(), Has.Count(0)); | |
126
6571b6483d2d
* Set target framework to v2.0...AGAIN
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
18 } |
6571b6483d2d
* Set target framework to v2.0...AGAIN
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
19 } |
6571b6483d2d
* Set target framework to v2.0...AGAIN
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
20 } |
6571b6483d2d
* Set target framework to v2.0...AGAIN
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
21 |