TilemapTests TestWithMouseDrag Method Delta Engine Documentation

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

public void TestWithMouseDrag()
Examples

[Test]
public void TestWithMouseDrag()
{
    var tilemap = new ColoredLogoTilemap(World, Map);
    tilemap.State.DragStart = new Vector2D(0.5f, 0.5f);
    tilemap.State.DragEnd = new Vector2D(0.7f, 0.9f);
    tilemap.Update();
    Assert.IsTrue(tilemap.State.DragDelta.IsNearlyEqual(new Vector2D(0.2f, 0.4f)));
}
See Also