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

            return(myDice.Roll(diceRoll));
        }