コード例 #1
0
        public void BeRerolledWithMoverThan5Dice(int noOfDice)
        {
            var diceGen = new DiceRollGenerator(new MockDiceProvider(_diceRoll.AllDice));

            Assert.Throws <IndexOutOfRangeException>(() => diceGen.RerollMany(_diceRoll, Enumerable.Range(1, noOfDice).ToArray()));
        }
コード例 #2
0
        public void BeRerolledWith0Dice()
        {
            var diceGen = new DiceRollGenerator(new MockDiceProvider(_diceRoll.AllDice));

            Assert.Throws <IndexOutOfRangeException>(() => diceGen.RerollMany(_diceRoll, new int[0]));
        }