public static void Main()
int[] twoPair = new int[] {1, 1, 2, 2, 3};
int[] pullay = new int[] {1, 1, 1, 2, 3};
int[] fullHouse = new int[] {1, 1, 2, 2, 2};
int[] pair = new int[] {1, 1, 2, 4, 3};
int[] anotherTwoPair = new int[] {10, 10, 5, 4, 5};
int[] straight = new int[] {4, 5, 6, 7, 8};
int[][] combinations = new int[][] {twoPair, pullay, fullHouse, pair, anotherTwoPair, straight};
foreach(int[] hand in combinations)
Console.WriteLine("True");
Console.WriteLine("False");
Console.WriteLine(String.Format("Out of {0} in total, {1} passed and {2} failed", combinations.Length, trueCounter, falseCounter));
static bool TwoPairs(int[] hand)
if (hand.Distinct().ToArray().Length == 3 && hand.Length == 5)
foreach (int card in hand.Distinct())
var result = hand.Count(x => x == card);