Exemplo n.º 1
0
 @Test
 public void redWinsIfTheyOwnAllCities() {
   CityImpl c = (CityImpl) game.getCityAt(new Position(4, 1));
   c.setOwner(Player.RED);
   assertThat("Red owns all cities and should win", game.getWinner(), is(Player.RED));
 }
Exemplo n.º 2
0
 @Test
 public void blueWinsIfTheyOwnAllCities() {
   CityImpl c = (CityImpl) game.getCityAt(new Position(1, 1));
   c.setOwner(Player.BLUE);
   assertThat("Blue owns all cities and should win", game.getWinner(), is(Player.BLUE));
 }