- 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.
推薦閱讀
- Learn Blockchain Programming with JavaScript
- Mobile Application Development:JavaScript Frameworks
- Java 開發從入門到精通(第2版)
- The DevOps 2.4 Toolkit
- Python漫游數學王國:高等數學、線性代數、數理統計及運籌學
- Java EE 7 Performance Tuning and Optimization
- C語言開發基礎教程(Dev-C++)(第2版)
- Modern C++ Programming Cookbook
- 計算機應用技能實訓教程
- Sails.js Essentials
- Java RESTful Web Service實戰
- Java 7 Concurrency Cookbook
- C語言程序設計
- Java面試一戰到底(基礎卷)
- Mastering PostgreSQL 11(Second Edition)