Пример #1
0
 public void TicTacTest()
 {
     int[,] board = new int[, ] {
         { 1, 1, 1 }, { 0, 2, 2 }, { 0, 0, 0 }
     };
     Assert.AreEqual(1, Katas2.IsSolved(board));
 }
Пример #2
0
 public void TicTacTest2()
 {
     int[,] board = new int[, ] {
         { 0, 1, 1 },
         { 2, 0, 2 },
         { 2, 1, 0 }
     };
     Assert.AreEqual(-1, Katas2.IsSolved(board));
 }
Пример #3
0
 public void TicTacTest3()
 {
     int[,] board = new int[, ]
     {
         { 2, 1, 2 },
         { 2, 1, 1 },
         { 1, 2, 1 }
     };
     Assert.AreEqual(0, Katas2.IsSolved(board));
 }