- Test-Driven Java Development(Second Edition)
- Alex Garcia Viktor Farcic
- 43字
- 2021-06-24 18:31:54
Test – by default there's no winner
Let's start by defining the default response of the play method:
@Test public void whenPlayThenNoWinner() { String actual = ticTacToe.play(1,1); assertEquals("No winner", actual); }
If no winning condition is fulfilled, then there is no winner.
推薦閱讀
- Extending Jenkins
- Java面向對象思想與程序設計
- Practical Data Science Cookbook(Second Edition)
- C專家編程
- Python從入門到精通(第3版)
- C編程技巧:117個問題解決方案示例
- Python 3 Object:oriented Programming(Second Edition)
- 百萬在線:大型游戲服務端開發
- Test-Driven iOS Development with Swift
- PHP+MySQL Web應用開發教程
- Mastering Drupal 8
- CryENGINE Game Programming with C++,C#,and Lua
- Java并發編程深度解析與實戰
- JavaScript啟示錄
- Mastering jQuery UI