UserInterfaceTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Platforms TestWithMocksOrVisually
    Blocks.Tests UserInterfaceTests

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

public class UserInterfaceTests : TestWithMocksOrVisually

The UserInterfaceTests type exposes the following members.

Constructors

  NameDescription
Public methodUserInterfaceTests
Initializes a new instance of the UserInterfaceTests class
Top
Methods

  NameDescription
Protected methodAdvanceTimeAndUpdateEntities (Inherited from TestWithMocksOrVisually.)
Public methodInitializeResolver (Inherited from TestWithMocksOrVisually.)
Public methodOnLoseScoreShouldBeZero
Protected methodRegisterMock T  (Inherited from TestWithMocksOrVisually.)
Protected methodResolve T  (Inherited from TestWithMocksOrVisually.)
Protected methodRunAfterFirstFrame (Inherited from TestWithMocksOrVisually.)
Public methodRunTestAndDisposeResolverWhenDone (Inherited from TestWithMocksOrVisually.)
Public methodSetUp
Public methodUserInterfaceShouldBeHidden
Public methodUserInterfaceShouldChangeFromLandscapeToPortrait
Top
Properties

  NameDescription
Protected propertyIsMockResolver (Inherited from TestWithMocksOrVisually.)
Top
Examples

[Test, CloseAfterFirstFrame]
public void UserInterfaceShouldChangeFromLandscapeToPortrait()
{
    userInterface.ShowUserInterfacePortrait();
}
[Test, CloseAfterFirstFrame]
public void OnLoseScoreShouldBeZero()
{
    userInterface.Lose();
    Assert.AreEqual(0, userInterface.Score);
}
[Test, CloseAfterFirstFrame]
public void UserInterfaceShouldBeHidden()
{
    userInterface.Dispose();
}
See Also