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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
779ad76c2644 Re #27: Unit requirements
IBBoard <dev@ibboard.co.uk>
parents: 126
diff changeset
5 using NUnit.Framework;
779ad76c2644 Re #27: Unit requirements
IBBoard <dev@ibboard.co.uk>
parents: 126
diff changeset
6 using IBBoard.WarFoundry.API.Objects.Mock;
779ad76c2644 Re #27: Unit requirements
IBBoard <dev@ibboard.co.uk>
parents: 126
diff changeset
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
779ad76c2644 Re #27: Unit requirements
IBBoard <dev@ibboard.co.uk>
parents: 126
diff changeset
15 public void TestRaceWithNoUnitTypesHasNoRequirements()
779ad76c2644 Re #27: Unit requirements
IBBoard <dev@ibboard.co.uk>
parents: 126
diff changeset
16 {
779ad76c2644 Re #27: Unit requirements
IBBoard <dev@ibboard.co.uk>
parents: 126
diff changeset
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