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.MinZoom
Assembly: CreepyTowers (in CreepyTowers.exe) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: SingleRemarks
Examples
[Test, CloseAfterFirstFrame] public void CannotZoomFurtherThanMinimumValue() { if (!IsMockResolver) return; //ncrunch: no coverage MockMouse mouse = (MockMouse)Resolve<Mouse>(); gameCamera.ZoomLevel = gameCamera.MinZoom; var originalZoom = gameCamera.ZoomLevel; mouse.ScrollDown(); AdvanceTimeAndUpdateEntities(); Assert.AreEqual(originalZoom, gameCamera.ZoomLevel); }
See Also