Пример #1
0
  @Test
  public void testRunTheGame() {
    MonopolyGame gameToTestOne = new MonopolyGame(2, new RegularDie());
    MonopolyGame gameToTestTwo = new MonopolyGame(2, new RegularDie());

    gameToTestOne.runTheGame(10);
    gameToTestTwo.runTheGame(10);

    assertTrue(
        gameToTestOne.getListOfPlayers().get(0).getMyMoney()
                != gameToTestTwo.getListOfPlayers().get(0).getMyMoney()
            || gameToTestOne.getListOfPlayers().get(1).getMyMoney()
                != gameToTestTwo.getListOfPlayers().get(1).getMyMoney());
  }
Пример #2
0
 @Before
 public void setUp() throws Exception {
   testGame = new MonopolyGame(2, new LoadedDie(4));
   listOfPlayers = testGame.getListOfPlayers();
 }