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

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.
主站蜘蛛池模板: 斗六市| 大埔区| 丹巴县| 南靖县| 桓仁| 南溪县| 常宁市| 内丘县| 仲巴县| 蒲江县| 集贤县| 贞丰县| 汾西县| 进贤县| 大埔区| 胶州市| 申扎县| 通许县| 彝良县| 东方市| 陆良县| 全椒县| 大姚县| 宁河县| 义乌市| 邵阳市| 长寿区| 卢龙县| 怀来县| 阿拉善盟| 寿宁县| 咸宁市| 临桂县| 孟州市| 汕尾市| 怀远县| 平泉县| 晋城| 博客| 洱源县| 铁岭县|