コード例 #1
0
  @Test
  public void newBoardDoesSomething() {
    boolean test = false;

    try {
      round.getTypeAt(0, 0);
      test = true;
    } catch (Exception e) {

    }

    assertEquals(true, test);
  }
コード例 #2
0
 @Test
 public void typesAreNotJustZeroes2() {
   assertEquals(
       true,
       round.getTypeAt(1, 0) != 0 || round.getTypeAt(1, 1) != 0 || round.getTypeAt(1, 2) != 0);
 }
コード例 #3
0
 @Test
 public void typesAreNotJustOnes() {
   assertEquals(
       true,
       round.getTypeAt(0, 0) != 1 || round.getTypeAt(0, 1) != 1 || round.getTypeAt(0, 2) != 1);
 }