StartupScreenTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Platforms TestWithMocksOrVisually
    FindTheWord.Tests StartupScreenTests

Namespace: FindTheWord.Tests
Assembly: FindTheWord.Tests (in FindTheWord.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public class StartupScreenTests : TestWithMocksOrVisually

The StartupScreenTests type exposes the following members.

Constructors

  NameDescription
Public methodStartupScreenTests
Initializes a new instance of the StartupScreenTests class
Top
Methods

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

  NameDescription
Protected propertyIsMockResolver (Inherited from TestWithMocksOrVisually.)
Top
Examples

[Test, Ignore]
public void RaisingGameStarted()
{
    int isGameStartedCount = 0;
    var screen = Resolve<StartupScreen>();
    screen.GameStarted += () => isGameStartedCount++;
    screen.StartGame();
    Assert.AreEqual(1, isGameStartedCount);
    Resolve<Window>().CloseAfterFrame();
}
[Test]
public void ShowScreen()
{
    Resolve<StartupScreen>();
}
See Also