- 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.
推薦閱讀
- TypeScript Blueprints
- Rake Task Management Essentials
- 數(shù)據(jù)結(jié)構(gòu)(Java語言描述)
- Android Application Development Cookbook(Second Edition)
- Java持續(xù)交付
- Python機(jī)器學(xué)習(xí)實(shí)戰(zhàn)
- Android系統(tǒng)級深入開發(fā)
- Keras深度學(xué)習(xí)實(shí)戰(zhàn)
- Deep Learning with R Cookbook
- 多媒體技術(shù)及應(yīng)用
- Docker:容器與容器云(第2版)
- INSTANT JQuery Flot Visual Data Analysis
- SEO教程:搜索引擎優(yōu)化入門與進(jìn)階(第3版)
- 數(shù)字媒體技術(shù)概論
- Socket.IO Cookbook