TouchDragDropTriggerTests CreateTouchDragDropTriggerFromString 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 CreateTouchDragDropTriggerFromString()
Examples

[Test, CloseAfterFirstFrame]
public void CreateTouchDragDropTriggerFromString()
{
    var startArea = Rectangle.One;
    var trigger = new TouchDragDropTrigger(new Dictionary<string, string>
        { { "StartArea", startArea.ToString() } });
    Assert.AreEqual(startArea, trigger.StartArea);
}
See Also