public void Test_CheckWin_SecondVertical() { var game = new TiKTakToe(); game.makeStep(0, 1, 1); game.makeStep(1, 1, 1); game.makeStep(2, 1, 1); Assert.True(game.chekcWin(1)); }
public void Test_CheckWin_ThirdHorizontal() { var game = new TiKTakToe(); game.makeStep(2, 0, 1); game.makeStep(2, 1, 1); game.makeStep(2, 2, 1); Assert.True(game.chekcWin(1)); }
public void Test_CheckWin_MainDiagonal() { var game = new TiKTakToe(); game.makeStep(0, 0, 1); game.makeStep(1, 1, 1); game.makeStep(2, 2, 1); Assert.True(game.chekcWin(1)); }
public void Test_MakeStep() { var game = new TiKTakToe(); game.makeStep(0, 0, 1); Assert.Equal(1, game.board[0, 0]); }