- 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.
推薦閱讀
- 兩周自制腳本語言
- Linux:Embedded Development
- Working with Odoo
- Building Wireless Sensor Networks Using Arduino
- TMS320LF240x芯片原理、設(shè)計及應(yīng)用
- Mastering AWS Security
- SQL Server 2008中文版項目教程(第3版)
- Practical Maya Programming with Python
- Python應(yīng)用與實戰(zhàn)
- 深入理解Kafka:核心設(shè)計與實踐原理
- Building Apple Watch Projects
- Web開發(fā)新體驗
- 基于JavaScript的WebGIS開發(fā)
- JavaScript程序設(shè)計基礎(chǔ)教程(慕課版)
- Hands-On Exploratory Data Analysis with Python