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

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

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

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

            Assert.Equal(18, actual);
        }