Namespace: CreepyTowers
Assembly: CreepyTowers (in CreepyTowers.exe) Version: 1.1.1.0 (1.1.1)
Tests: CreepyTowers.Tests.GameCameraTests
1 unit tests call CreepyTowers.GameCamera.MaxZoom
Assembly: CreepyTowers (in CreepyTowers.exe) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: SingleRemarks
Examples
[Test, CloseAfterFirstFrame] public void CannotZoomCloserThanMaximumValue() { if (!IsMockResolver) return; //ncrunch: no coverage MockMouse mouse = (MockMouse)Resolve<Mouse>(); gameCamera.ZoomLevel = gameCamera.MaxZoom; var originalZoom = gameCamera.ZoomLevel; mouse.ScrollUp(); AdvanceTimeAndUpdateEntities(); Assert.AreEqual(originalZoom, gameCamera.ZoomLevel); }
See Also