Esempio n. 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            int n = 9;

            int[]   testArr = new int[] { 10, 20, 20, 10, 10, 30, 50, 10, 20 };
            Program p       = new Program();

            p.FindMatchingPairsOfSocks(n, testArr);
        }
        public void Test1()
        {
            int n = 9;

            int[]   testArr  = new int[] { 10, 20, 20, 10, 10, 30, 50, 10, 20 };
            Program p        = new Program();
            int     actual   = p.FindMatchingPairsOfSocks(n, testArr);
            int     expected = 3;

            Assert.Equal(expected, actual);
        }