MouseTests ScrollWheelUpAndDown 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 ScrollWheelUpAndDown()
Examples

[Test, CloseAfterFirstFrame]
public void ScrollWheelUpAndDown()
{
    var mockMouse = Resolve<Mouse>() as MockMouse;
    if (mockMouse == null)
        return; //ncrunch: no coverage
    Assert.AreEqual(0, mockMouse.ScrollWheelValue);
    mockMouse.ScrollUp();
    Assert.AreEqual(1, mockMouse.ScrollWheelValue);
    mockMouse.ScrollDown();
    Assert.AreEqual(0, mockMouse.ScrollWheelValue);
}
See Also