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

            test.Add(new Card('S', '2', 1));
            test.Add(new Card('H', '3', 2));
            test.Add(new Card('C', '4', 3));
            test.Add(new Card('D', '5', 4));
            test.Add(new Card('H', '6', 5));

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

            test2.Add(new Card('H', '8', 7));
            test2.Add(new Card('S', 'K', 12));

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

            Assert.AreNotEqual(0, res);
        }