Ejemplo n.º 1
0
        public void CombinationTestWhenFourOfKind()
        {
            Combination comb = new Combination();
            List <Card> test = new List <Card>();

            test.Add(new Card('S', '2', 1));
            test.Add(new Card('H', '2', 1));
            test.Add(new Card('C', '2', 1));
            test.Add(new Card('H', '2', 7));
            test.Add(new Card('C', 'X', 9));

            List <Card> test2 = new List <Card>();

            test2.Add(new Card('S', 'J', 10));
            test2.Add(new Card('S', 'K', 12));

            int res = comb.CheckFourOfAKind(test, test2);

            Assert.AreNotEqual(0, res);
        }