示例#1
0
 public void ShouldCreateD4()
 {
     Assert.IsInstanceOf <D4Die>(DiceFactory.Create(DiceType.D4));
 }
示例#2
0
 public void ShouldCreateD20()
 {
     Assert.IsInstanceOf <D20Die>(DiceFactory.Create(DiceType.D20));
 }
示例#3
0
 public void ShouldCreateD12()
 {
     Assert.IsInstanceOf <D12Die>(DiceFactory.Create(DiceType.D12));
 }
示例#4
0
 public void ShouldCreateD8()
 {
     Assert.IsInstanceOf <D8Die>(DiceFactory.Create(DiceType.D8));
 }
示例#5
0
 public void ShouldCreateD6()
 {
     Assert.IsInstanceOf <D6Die>(DiceFactory.Create(DiceType.D6));
 }
示例#6
0
        private PartialRoll RollGen(string diceRoll)
        {
            var myDice = DiceFactory.Create();

            return(myDice.Roll(diceRoll));
        }