MouseDoubleClickTriggerTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  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

public class MouseDoubleClickTriggerTests : TestWithMocksOrVisually

The MouseDoubleClickTriggerTests type exposes the following members.

Constructors

  NameDescription
Public methodMouseDoubleClickTriggerTests
Initializes a new instance of the MouseDoubleClickTriggerTests class
Top
Methods

  NameDescription
Protected methodAdvanceTimeAndUpdateEntities (Inherited from TestWithMocksOrVisually.)
Public methodCreateFromAttributes
Public methodDoubleClickToCloseWindow
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.)
Top
Properties

  NameDescription
Protected propertyIsMockResolver (Inherited from TestWithMocksOrVisually.)
Top
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