TouchPressTriggerTests Create 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 Create()
Examples

[Test, CloseAfterFirstFrame]
public void Create()
{
    var trigger = new TouchPressTrigger(State.Pressed);
    Assert.AreEqual(State.Pressed, trigger.State);
}
[Test, CloseAfterFirstFrame]
public void CreateFromAttributes()
{
    var trigger =
        new TouchPressTrigger(new Dictionary<string, string> { { "State", "Pressed" } });
See Also