- 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.
推薦閱讀
- 數據科學實戰手冊(R+Python)
- 微服務設計(第2版)
- 程序設計與實踐(VB.NET)
- Power Up Your PowToon Studio Project
- Hands-On Enterprise Automation with Python.
- Learning Python by Building Games
- TradeStation交易應用實踐:量化方法構建贏家策略(原書第2版)
- 深入淺出PostgreSQL
- 運維前線:一線運維專家的運維方法、技巧與實踐
- 零基礎學C語言(升級版)
- Access數據庫應用教程(2010版)
- Building Clouds with Windows Azure Pack
- Unreal Engine Game Development Cookbook
- AngularJS by Example
- Mastering Assembly Programming