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