- Test-Driven Java Development(Second Edition)
- Alex Garcia Viktor Farcic
- 45字
- 2021-06-24 18:31:52
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.
推薦閱讀
- Spring Cloud Alibaba核心技術(shù)與實(shí)戰(zhàn)案例
- 零基礎(chǔ)學(xué)Scratch少兒編程:小學(xué)課本中的Scratch創(chuàng)意編程
- C/C++算法從菜鳥到達(dá)人
- 碼上行動:零基礎(chǔ)學(xué)會Python編程(ChatGPT版)
- UI智能化與前端智能化:工程技術(shù)、實(shí)現(xiàn)方法與編程思想
- Implementing Cisco Networking Solutions
- Rust Cookbook
- EPLAN實(shí)戰(zhàn)設(shè)計(jì)
- Python編程與幾何圖形
- C語言實(shí)驗(yàn)指導(dǎo)及習(xí)題解析
- .NET 3.5編程
- 圖數(shù)據(jù)庫實(shí)戰(zhàn)
- Spring技術(shù)內(nèi)幕:深入解析Spring架構(gòu)與設(shè)計(jì)原理(第2版)
- Delphi開發(fā)典型模塊大全(修訂版)
- Scratch從入門到精通