GameTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Platforms TestWithMocksOrVisually
    FindTheWord.Tests GameTests

Namespace: FindTheWord.Tests
Assembly: FindTheWord.Tests (in FindTheWord.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 methodInitializeGame
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.)
Top
Properties

  NameDescription
Protected propertyIsMockResolver (Inherited from TestWithMocksOrVisually.)
Top
Examples

[Test, Ignore]
public void InitializeGame()
{
    var startupScreen = Resolve<StartupScreen>();
    var gameScreen = Resolve<GameScreen>();
    new Game(startupScreen, gameScreen);
    startupScreen.StartGame();
    Assert.IsTrue(startupScreen.IsVisible);
}
See Also