Beispiel #1
0
        public static void Main()
        {
            CountNumbers cn = new CountNumbers();

            Console.WriteLine("Amostra = [1, 2, 3, 4, 5, 6]. lessThan = 4. ");
            Console.WriteLine("Execução retornou: {0}", cn.countNumbers(new int [] { 1, 2, 3, 4, 5, 6 }, 4));
            Console.ReadKey(true);
        }
        public void countNumbers()
        {
            CountNumbers cn = new CountNumbers();

            Assert.AreEqual(3, cn.countNumbers(new int [] { 1, 2, 3, 4, 5, 6 }, 4));
        }