package net.cvcg.ian.tictactoe;

import org.junit.Test;

import static org.junit.Assert.assertTrue;

public class TicTacToeBoardTest {

    @Test
    public void testMove() {
        TicTacToeBoard board = new TicTacToeBoard();
        board.move(Player.X, 0, 0);
        assertTrue(board.getBoard()[0][0] == Player.X);
    }

    @Test
    public void testGetWinner() {
        TicTacToeBoard board = new TicTacToeBoard();
        board.move(Player.Y, 1, 0);
        board.move(Player.Y, 1, 1);
        board.move(Player.Y, 1, 2);
        assertTrue(board.getWinner() == Player.Y);
    }

}

@@ -359,16 +359,24 @@
 etWinner
+InColumn
 () %7B%0A   
@@ -591,10 +591,278 @@
 %0A    %7D%0A%0A
+    @Test%0A    public void testGetWinnerInRow() %7B%0A        TicTacToeBoard board = new TicTacToeBoard();%0A        board.move(Player.X, 0, 2);%0A        board.move(Player.X, 1, 2);%0A        board.move(Player.X, 2, 2);%0A        assertTrue(board.getWinner() == Player.X);%0A    %7D%0A%0A
 %7D%0A

rename winner test to column test add row winner test