private void InitializeDiceSet() { diceSet = new SixSidedDie[3]; diceSet[0] = new SixSidedDie(); diceSet[1] = new SixSidedDie(); diceSet[2] = new SixSidedDie(); }
public void DieRollHasSufficientProbabilityToAlwaysBeBetween1And6() { SixSidedDie die = new SixSidedDie(); for (int i = 0; i < 10000; i++) { Assert.IsTrue(die.Roll() >= 1 && die.Roll() <= 6); } }