GameTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  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

public class GameTests : TestWithMocksOrVisually

The GameTests type exposes the following members.

Constructors

  NameDescription
Public methodGameTests
Initializes a new instance of the GameTests class
Top
Methods

  NameDescription
Protected methodAdvanceTimeAndUpdateEntities (Inherited from TestWithMocksOrVisually.)
Public methodInitializeResolver (Inherited from TestWithMocksOrVisually.)
Protected methodRegisterMock T  (Inherited from TestWithMocksOrVisually.)
Protected methodResolve T  (Inherited from TestWithMocksOrVisually.)
Protected methodRunAfterFirstFrame (Inherited from TestWithMocksOrVisually.)
Public methodRunTestAndDisposeResolverWhenDone (Inherited from TestWithMocksOrVisually.)
Public methodSendGhostsFromOneTreeToAnother
Public methodShortTreeDistance
Top
Properties

  NameDescription
Protected propertyIsMockResolver (Inherited from TestWithMocksOrVisually.)
Top
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