示例#1
0
        public void CombinationTestWhenFlush()
        {
            Combination comb = new Combination();
            List <Card> test = new List <Card>();

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

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

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

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

            Assert.AreNotEqual(0, res);
        }