public void throwSeverald3Test() { Dice dice = new Dice6(new VisualStudioRandomGenerator()); for (int i = 0; i < 100; i++) { int dvalue = (int)dice.rollADice(); Assert.IsTrue(1 <= dvalue && dvalue <= 6, "value not fit for d6:" + dvalue); } }
public void throw1d6Test() { Dice dice = new Dice6(new FakeRandomGenerator()); Assert.AreEqual(DiceValue.PlusOne, dice.rollADice()); }