Ejemplo n.º 1
0
        public void DiceRollShouldBe0IfInputIsNegative()
        {
            DiceController testDiceController = new DiceController();
            int            roll = testDiceController.DiceRoll(1, -10);

            Assert.IsTrue(roll == 0, "The outcome of the 20 should be 0. ");
        }
Ejemplo n.º 2
0
        public void DiceRollShouldBeBetween1And13()
        {
            DiceController testDiceController = new DiceController();
            int            roll = testDiceController.DiceRoll(1, 12);

            Assert.IsTrue(roll <= 13 && roll >= 1, "The outcome of the 4 sided dice is between 1 and 13. ");
        }