官术网_书友最值得收藏!

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.
主站蜘蛛池模板: 永川市| 灌阳县| 昌邑市| 嘉祥县| 宜阳县| 繁峙县| 洛川县| 永春县| 博客| 綦江县| 军事| 铜山县| 沾益县| 扎赉特旗| 黄陵县| 于田县| 乐陵市| 新平| 伊宁市| 金山区| 余江县| 灌阳县| 博湖县| 东山县| 瑞丽市| 昭觉县| 璧山县| 德兴市| 盐山县| 额尔古纳市| 大姚县| 林芝县| 上饶市| 舒兰市| 北流市| 陵川县| 囊谦县| 通江县| 蚌埠市| 牡丹江市| 门头沟区|