public void IfTheDiceAreNotConsecutive(DieRoll[] dice) { var straight = new StraightRule(); var result = straight.CountPoints(new DiceRoll(dice)); Assert.True(result.DiceCombination == _combination, $"Expected {_combination} combination, but got {result.DiceCombination} instead."); }
public void AndAwardsNoPoints(DieRoll[] dice) { var straight = new StraightRule(); var result = straight.CountPoints(new DiceRoll(dice)); Assert.True(result.Points == _points, $"Expected {_points} combination, but got {result.Points} instead."); }
public ObtainingAHighStraight() { var dice = new DieRoll[] { DieRoll.Two, DieRoll.Four, DieRoll.Three, DieRoll.Five, DieRoll.Six }; var diceSet = new DiceRoll(dice); var rule = new StraightRule(); result = rule.CountPoints(diceSet); }