Beispiel #1
0
 public void TestForDiagonalWinCondition()
 {
     board.grid = new string[3, 3] {
         { "X", "2", "3" }, { "4", "X", "6" }, { "7", "8", "X" }
     };
     board.CheckDiagonal();
     Assert.IsTrue(board.Flag == 2, "A diagonal input has won");
 }