public void BeRerolledWithMoverThan5Dice(int noOfDice) { var diceGen = new DiceRollGenerator(new MockDiceProvider(_diceRoll.AllDice)); Assert.Throws <IndexOutOfRangeException>(() => diceGen.RerollMany(_diceRoll, Enumerable.Range(1, noOfDice).ToArray())); }
public void BeRerolledWith0Dice() { var diceGen = new DiceRollGenerator(new MockDiceProvider(_diceRoll.AllDice)); Assert.Throws <IndexOutOfRangeException>(() => diceGen.RerollMany(_diceRoll, new int[0])); }