@Test public void testRectangularStrategyBoard() { Iterator<Piece> iter = board.iterator(); while (iter.hasNext()) { assertTrue(Piece.NULL_PIECE == iter.next()); } }
@Test public void testIterator() { Iterator<Piece> iter = board.iterator(); int iterCount = 0; while (iter.hasNext()) { iter.next(); iterCount++; } assertEquals(36, iterCount); }