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

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.
主站蜘蛛池模板: 西昌市| 三明市| 乡宁县| 黄骅市| 黄石市| 积石山| 宁德市| 武胜县| 锦州市| 夏津县| 昌图县| 南昌县| 成都市| 定边县| 龙门县| 从江县| 葵青区| 定结县| 彝良县| 古丈县| 日土县| 阆中市| 长顺县| 北流市| 贵港市| 蒙阴县| 桐城市| 肃北| 濮阳市| 玛沁县| 寿光市| 昌平区| 惠来县| 军事| 仙居县| 武宁县| 浦江县| 涪陵区| 永登县| 周宁县| 西乡县|