Example #1
0
 public void checkWinner_Test_Diag_O_1()
 {
     char[,] input = { { 'O', '2', '3' }, { '4', 'O', '6' }, { '7', '8', 'O' } };
     functions test = new functions();
     Assert.AreEqual(true, test.checkWinner(input));
 }
Example #2
0
 public void checkWinner_Test_Diag_X_2()
 {
     char[,] input = { { '1', '2', 'X' }, { '4', 'X', '6' }, { 'X', '8', '9' } };
     functions test = new functions();
     Assert.AreEqual(true, test.checkWinner(input));
 }
Example #3
0
 public void checkWinner_TestNumbers()
 {
     char[,] input = { { '1', '2', '3' }, { '4', '5', '6' }, { '7', '8', '9' } };
     functions test = new functions();
     Assert.AreEqual(false, test.checkWinner(input));
 }