ScrollbarTests ValidatePointerCenter 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 ValidatePointerCenter()
Examples

[Test, CloseAfterFirstFrame]
public void ValidatePointerCenter()
{
    if (mouse == null)
        return; //ncrunch: no coverage 
    var position = new Vector2D(0.3f, 0.52f);
    DragMouse(position);
    Assert.AreEqual(new Vector2D(0.3f, 0.5f), scrollbar.Pointer.DrawArea.Center);
}
See Also