WindowVisualTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Platforms TestWithMocksOrVisually
    DeltaEngine.Platforms.Tests WindowVisualTests

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

public class WindowVisualTests : TestWithMocksOrVisually

The WindowVisualTests type exposes the following members.

Constructors

  NameDescription
Public methodWindowVisualTests
Initializes a new instance of the WindowVisualTests class
Top
Methods

  NameDescription
Protected methodAdvanceTimeAndUpdateEntities (Inherited from TestWithMocksOrVisually.)
Public methodChangeCursorIcon
Public methodCreateWindow
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 methodShowColoredEllipse
Public methodShowCursorAndToggleHideWhenClicking
Top
Properties

  NameDescription
Protected propertyIsMockResolver (Inherited from TestWithMocksOrVisually.)
Top
Examples

[Test]
public void ShowCursorAndToggleHideWhenClicking()
{
    bool showCursor = true;
    new Command(() => window.ShowCursor = showCursor = !showCursor).Add(new MouseButtonTrigger());
}
[Test, Ignore]
public void ChangeCursorIcon()
{
    window.SetCursorIcon("TestCursor.cur");
}
[Test, Category("Slow")]
public void ShowColoredEllipse()
{
    new Ellipse(new Rectangle(Vector2D.Half, Size.One / 4), Color.Red);
}
See Also