Example #1
0
        public void ReturnsRandomNumberD12()
        {
            DiceRoll dice   = new DiceRoll();
            int      actual = dice.D12();

            Assert.IsNotNull(actual);
        }
Example #2
0
        public int GetLevel2AndUpHitPontsD12(int conMod)
        {
            DiceRoll dice   = new DiceRoll();
            int      result = dice.D12() + conMod;

            if (result >= 1)
            {
                return(result);
            }
            return(1);
        }
Example #3
0
 public int GetLevel2AndUpHitPontsD12(int conMod)
 {
     DiceRoll dice = new DiceRoll();
     int result = dice.D12() + conMod;
     if (result >= 1)
     return result;
     return 1;
 }