Пример #1
0
        public void Straight5TestNoPoints(int die1, int die2, int die3, int die4, int die5)
        {
            const int points   = 25;
            var       straight = new Straight(5, "Straight", points);

            var list = new List <Die>
            {
                new Die(die1, die1),
                new Die(die2, die2),
                new Die(die3, die3),
                new Die(die4, die4),
                new Die(die5, die5)
            };

            list.ForEach(die => die.Roll());
            var result = straight.CountPoints(list);

            Assert.Equal(0, result.Value);
        }