Inheritance Hierarchy
DeltaEngine.Platforms TestWithMocksOrVisually
GhostWars.Tests GameTests
Namespace: GhostWars.Tests
Assembly: GhostWars.Tests (in GhostWars.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The GameTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
GameTests | Initializes a new instance of the GameTests class |
Methods
Name | Description | |
---|---|---|
AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) | |
InitializeResolver | (Inherited from TestWithMocksOrVisually.) | |
RegisterMock T | (Inherited from TestWithMocksOrVisually.) | |
Resolve T | (Inherited from TestWithMocksOrVisually.) | |
RunAfterFirstFrame | (Inherited from TestWithMocksOrVisually.) | |
RunTestAndDisposeResolverWhenDone | (Inherited from TestWithMocksOrVisually.) | |
SendGhostsFromOneTreeToAnother | ||
ShortTreeDistance |
Properties
Name | Description | |
---|---|---|
IsMockResolver | (Inherited from TestWithMocksOrVisually.) |
Examples
[Test] public void SendGhostsFromOneTreeToAnother() { var trees = new TreeManager(Team.HumanYellow); trees.AddTree(new Vector2D(0.75f, 0.4f), Team.HumanYellow); trees.AddTree(new Vector2D(0.25f, 0.55f), Team.None); }
[Test] public void ShortTreeDistance() { var trees = new TreeManager(Team.HumanYellow); trees.AddTree(new Vector2D(0.35f, 0.4f), Team.HumanYellow); trees.AddTree(new Vector2D(0.65f, 0.5f), Team.None); }
See Also