예제 #1
0
 @Test
 public void testHorizontalWinnerIsEqualToWinnerValue() {
   int[] cell = {0, 1};
   board.setCellValue(cell, 1);
   assertEquals(1, GameState.HorizontalWinner(board));
 }
예제 #2
0
 @Test
 public void testHorizontalWinnerReturnsZeroForNoWinner() {
   assertEquals(0, GameState.HorizontalWinner(board));
 }