Exemple #1
0
        public void GetFullHouse_NoFullHouse_Zero()
        {
            Yatzy instance = new Yatzy(6, 5, 1, 3, 4);
            int   actual   = instance.GetFullHouse();

            Assert.Equal(0, actual);
        }
Exemple #2
0
        public void GetFullHouse_AllScoresAreTheSame_Zero()
        {
            Yatzy instance = new Yatzy(2, 2, 2, 2, 2);
            int   actual   = instance.GetFullHouse();

            Assert.Equal(0, actual);
        }
Exemple #3
0
        public void GetFullHouse_OnlyThreeOfAKind_Zero()
        {
            Yatzy instance = new Yatzy(2, 2, 2, 3, 4);
            int   actual   = instance.GetFullHouse();

            Assert.Equal(0, actual);
        }
Exemple #4
0
        public void GetFullHouse_SumOfTwoAndThreeOfAKind()
        {
            Yatzy instance = new Yatzy(6, 2, 2, 2, 6);
            int   actual   = instance.GetFullHouse();

            Assert.Equal(18, actual);
        }