コード例 #1
0
 @Test
 public void testGameFameCorrectAtGameStart() {
   List<Player> listOfPlayers = new ArrayList<>();
   GameSetup gameSetup = new GameSetup();
   listOfPlayers = gameSetup.initializePlayers(6);
   boolean didItFail = false;
   for (Player player : listOfPlayers) {
     int fame = player.getFame();
     if (fame != 1500) {
       didItFail = true;
     }
   }
   assertFalse(didItFail);
 }
コード例 #2
0
 @Test
 public void testGameTokensOnGoAtGameStart() {
   List<Player> listOfPlayers = new ArrayList<>();
   GameSetup gameSetup = new GameSetup();
   listOfPlayers = gameSetup.initializePlayers(6);
   boolean didItFail = false;
   for (Player player : listOfPlayers) {
     int location = player.getLocation();
     if (location != 0) {
       didItFail = true;
     }
   }
   assertFalse(didItFail);
 }