Пример #1
0
 public void TestGenerateResourcesWithRequiredNumberOfRounds()
 {
     World w = new World(3, 0, null);
     int rounds = 0;
     for (int i = 0; i < 9; i++)
     {
         w.endTurn();
         if (i%3 == 0)
         {
             rounds++;
         }
     }
     Assert.AreEqual(rounds - 1, w.getNumberOfRoundsCompleted());
 }
Пример #2
0
 public void TestRounds()
 {
     World w = new World(3, 0, null);
     int rounds = 0;
     for (int i = 0; i < 9; i++)
     {
         w.rollDice();
         w.endTurn();
         if (i%3 == 0)
         {
             rounds++;
         }
     }
     Assert.AreEqual(rounds, w.getNumberOfRoundsCompleted());
 }