Пример #1
0
 @Test
 public void testHasWinnerForVertical() {
   int[] cell = {1, 2};
   board.setCellValue(cell, 1);
   assertTrue(GameState.hasWinner(board));
 }
Пример #2
0
 @Test
 public void testHasWinnerForHorizontal() {
   int[] cell = {0, 1};
   board.setCellValue(cell, 1);
   assertTrue(GameState.hasWinner(board));
 }
Пример #3
0
 @Test
 public void testHasWinnerIsFalse() {
   assertFalse(GameState.hasWinner(board));
 }