public void TicTacTest() { int[,] board = new int[, ] { { 1, 1, 1 }, { 0, 2, 2 }, { 0, 0, 0 } }; Assert.AreEqual(1, Katas2.IsSolved(board)); }
public void TicTacTest2() { int[,] board = new int[, ] { { 0, 1, 1 }, { 2, 0, 2 }, { 2, 1, 0 } }; Assert.AreEqual(-1, Katas2.IsSolved(board)); }
public void TicTacTest3() { int[,] board = new int[, ] { { 2, 1, 2 }, { 2, 1, 1 }, { 1, 2, 1 } }; Assert.AreEqual(0, Katas2.IsSolved(board)); }