Ejemplo n.º 1
0
 public void testGetRollNumber()
 {
     World w = new World(3, 0, null);
     Player player1 = new Player("Meeeeee!", Color.HotPink, w);
     w.addPlayer(player1);
     w.setCurrentPlayer(player1.getName());
     //test getting roll number without rolling
     Assert.AreEqual(0, w.getRollNumber());
     w.numOfCompletedRounds = 5;
     //test getting roll number after rolling
     w.rollDice();
     Assert.IsTrue(w.getRollNumber() < 13 && w.getRollNumber() > 1);
 }