MouseMovementTriggerTests 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()
{
    var trigger = new MouseMovementTrigger(new Dictionary<string, string>());
    Assert.AreEqual(Vector2D.Zero, trigger.Movement);
    Assert.Throws<MouseMovementTrigger.MouseMovementTriggerHasNoParameters>(
        () => new MouseMovementTrigger(new Dictionary<string, string> { { "a", "b" } }));
}
See Also