示例#1
0
        public void Awards1000PtsForAllRolls(DieRoll dice)
        {
            var diceSet     = FakeDiceRollFactory.GetSetOfRolls(dice, 4);
            var fourOfAKind = new FourOfAKindRule();

            var result = fourOfAKind.CountPoints(new DiceRoll(diceSet));

            Assert.True(result.Points == _points);
        }
示例#2
0
        public void CanBeAchievedByFourOfAnyRoll(DieRoll dice)
        {
            var diceSet     = FakeDiceRollFactory.GetSetOfRolls(dice, 4);
            var fourOfAKind = new FourOfAKindRule();

            var result = fourOfAKind.CountPoints(new DiceRoll(diceSet));

            Assert.True(result.DiceCombination == _combination);
        }