コード例 #1
0
ファイル: Program.cs プロジェクト: FLira2000/countNumbers
        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);
        }
コード例 #2
0
        public void countNumbers()
        {
            CountNumbers cn = new CountNumbers();

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