TouchDoubleTapTriggerTests 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()
{
    Assert.DoesNotThrow(() => new TouchDoubleTapTrigger());
}
[Test, CloseAfterFirstFrame]
public void CreateFromAttributes()
{
    Assert.DoesNotThrow(() => new TouchDoubleTapTrigger(new Dictionary<string, string>()));
    Assert.Throws<TouchDoubleTapTrigger.TouchDoubleTapTriggerHasNoParameters>(
        () => new TouchDoubleTapTrigger(new Dictionary<string, string> { { "Button", "Right" } }));
}
[Test, CloseAfterFirstFrame]
public void CreateWithAttributes()
{
    Assert.DoesNotThrow(() => new TouchDoubleTapTrigger(new Dictionary<string, string>()));
    Assert.Throws<TouchDoubleTapTrigger.TouchDoubleTapTriggerHasNoParameters>(
        () => new TouchDoubleTapTrigger(new Dictionary<string, string> { { "a", "b" } }));
}
See Also