Test – board boundaries II

This test is almost the same as the previous one. This time we should validate the y-axis:

@Test
public void whenYOutsideBoardThenRuntimeException() {
  exception.expect(RuntimeException.class);
  ticTacToe.play(2, 5);
}

When a piece is placed anywhere outside the y-axis, then RuntimeException is thrown.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.105.2