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.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset