MouseZoomTriggerTests MouseWheelZoomUp 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 MouseWheelZoomUp()
Examples

[Test, CloseAfterFirstFrame]
public void MouseWheelZoomUp()
{
    var mouse = Resolve<Mouse>() as MockMouse;
    if (mouse == null)
        return; //ncrunch: no coverage 
    bool isZoomed = false;
    new Command((float zoomAmount) => isZoomed = true).Add(new MouseZoomTrigger());
    mouse.ScrollUp();
    AdvanceTimeAndUpdateEntities();
    Assert.IsTrue(isZoomed);
}
See Also