Inheritance Hierarchy
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
The StartupScreenTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
StartupScreenTests | Initializes a new instance of the StartupScreenTests class |
Methods
Name | Description | |
---|---|---|
AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) | |
InitializeResolver | (Inherited from TestWithMocksOrVisually.) | |
RaisingGameStarted | ||
RegisterMock T | (Inherited from TestWithMocksOrVisually.) | |
Resolve T | (Inherited from TestWithMocksOrVisually.) | |
RunAfterFirstFrame | (Inherited from TestWithMocksOrVisually.) | |
RunTestAndDisposeResolverWhenDone | (Inherited from TestWithMocksOrVisually.) | |
ShowScreen |
Properties
Name | Description | |
---|---|---|
IsMockResolver | (Inherited from TestWithMocksOrVisually.) |
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