221222223224225226227228
} @Test (expected = ArrayIndexOutOfBoundsException.class) public void testSetValueOutSizeM() { area = new Area( 5, 5 ); area.setValue(5, 9, 1); }
234235236237238239240241
} @Test (expected = ArrayIndexOutOfBoundsException.class) public void testCheckStepOutSizeN() { area = new Area( 5, 5 ); area.checkStep(9, 0); }
242243244245246247248249
@Test (expected = ArrayIndexOutOfBoundsException.class) public void testCheckStepOutSizeM() { area = new Area( 5, 5 ); area.checkStep(0, 9); }
249250251252253254255256
} @Test public void testCheckStep() { area = new Area( 5, 5 ); assertTrue(area.checkStep(5, 2)); }