Inheritance Hierarchy
DeltaEngine.Platforms TestWithMocksOrVisually
DeltaEngine.Input.Tests MouseDoubleClickTriggerTests
Namespace: DeltaEngine.Input.Tests
Assembly: DeltaEngine.Input.Tests (in DeltaEngine.Input.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The MouseDoubleClickTriggerTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
MouseDoubleClickTriggerTests | Initializes a new instance of the MouseDoubleClickTriggerTests class |
Methods
Name | Description | |
---|---|---|
AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) | |
CreateFromAttributes | ||
DoubleClickToCloseWindow | ||
InitializeResolver | (Inherited from TestWithMocksOrVisually.) | |
RegisterMock T | (Inherited from TestWithMocksOrVisually.) | |
Resolve T | (Inherited from TestWithMocksOrVisually.) | |
RunAfterFirstFrame | (Inherited from TestWithMocksOrVisually.) | |
RunTestAndDisposeResolverWhenDone | (Inherited from TestWithMocksOrVisually.) |
Properties
Name | Description | |
---|---|---|
IsMockResolver | (Inherited from TestWithMocksOrVisually.) |
Examples
[Test] public void DoubleClickToCloseWindow() { new FontText(Font.Default, "Double Click Mouse Button to close window", Rectangle.One); new Command(() => Resolve<Window>().CloseAfterFrame()).Add(new MouseDoubleClickTrigger()); }
[Test, CloseAfterFirstFrame] public void CreateFromAttributes() { var trigger = new MouseDoubleClickTrigger(new Dictionary<string, string> { { "Button", "Right" } });
See Also