public void CombinationTestWhenDoublePair() { 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', '7', 6)); test.Add(new Card('D', '8', 7)); test.Add(new Card('H', 'K', 12)); List <Card> test2 = new List <Card>(); test2.Add(new Card('H', '8', 7)); test2.Add(new Card('S', 'K', 12)); int res = comb.CheckDoublePair(test, test2); Assert.AreNotEqual(0, res); }