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()); }
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()); }