Exemple #1
0
        public void AdjustGameScale_ZoomOut_SameCell(int zoomSteps)
        {
            (int origCol, int origRow) = _pixelMapper.GetMiddleCoordsOfViewPort();
            _pixelMapper.LogData(_output);

            for (int i = 0; i < zoomSteps; i++)
            {
                _pixelMapper.ZoomOutPixelMapper();
                _pixelMapper.LogData(_output);
            }

            (int newCol, int newRow) = _pixelMapper.GetMiddleCoordsOfViewPort();

            Assert.Equal(origCol, newCol);
            Assert.Equal(origRow, newRow);
        }