MouseDragTriggerTests CreateFromAttributes Method Delta Engine Documentation

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

public void CreateFromAttributes()
Examples

[Test, CloseAfterFirstFrame]
public void CreateFromAttributes()
{
    Assert.AreEqual(MouseButton.Left,
        new MouseDragTrigger(new Dictionary<string, string>()).Button);
    Assert.AreEqual(MouseButton.Right,
        new MouseDragTrigger(new Dictionary<string, string> { { "Button", "Right" } }).Button);
}
See Also