@Test public void coordinatesTooMuchLeftAreOffTheGrid() { assertEquals(null, grid.getSquareFromCoordinates(150, -202)); }
@Test public void coordinatesTooMuchRightAreOffTheGrid() { assertEquals(null, grid.getSquareFromCoordinates(155, 400)); }
@Test public void coordinatesTooMuchDownAreOffTheGrid() { assertEquals(null, grid.getSquareFromCoordinates(1000, 20)); }
@Test public void findBottomRightSquareFromPixelCoordinates() { assertEquals(new Point(9, 9), grid.getSquareFromCoordinates(300, 329)); }
@Test public void findBottomLeftSquareFromPixelCoordinates() { assertEquals(new Point(9, 0), grid.getSquareFromCoordinates(329, 32)); }
@Test public void findTopRightSquareFromPixelCoordinates() { assertEquals(new Point(0, 9), grid.getSquareFromCoordinates(10, 329)); }
@Test public void findTopLeftSquareFromPixelCoordinates() { assertEquals(new Point(0, 0), grid.getSquareFromCoordinates(1, 30)); }