Example #1
0
        public void Chance_scores_sum_of_all_dice()
        {
            int expected = 15;
            int actual   = Yatzy.Chance(2, 3, 4, 5, 1);

            Assert.Equal(expected, actual);
            Assert.Equal(16, Yatzy.Chance(3, 3, 4, 5, 1));
        }
Example #2
0
        public void Chance_scores_sum_of_all_dice(int expected, int d1, int d2, int d3, int d4, int d5)
        {
            var actual = Yatzy.Chance(d1, d2, d3, d4, d5);

            Assert.Equal(expected, actual);
        }