Esempio n. 1
0
        static void Main(string[] args)
        {
            int[] ar = new int[] { 1, 2, 3, 5, 6, 7, 8, 9, 10, 11 };
            int[] tr = new int[] { 10, 20, 30, 50, 60, 70, 80, 90, 100, 110 };
            //return array
            int[] ra = new int[] { 1, 2, 3, 4, 5, 6 };
            //xyz
            int[] xyz = new int[] { 94, 101, 20, 45, 57 };

            var numArray = new int[] { 10, 20, 30, 40 };

            var snaptest = new int[] { 5, 6, 7, 8, 9 };

            int[] rabbits01 = new int[] { };



            //Console.WriteLine("Hello World!");
            //Console.WriteLine(Eng35Tests.CreateArrayFromSentence(" "));
            Eng35Tests.Mega_Multiple_Coding_Loops(ar);
            Eng35Tests.Mega_Loops_TrialRun(tr);
            //xyz
            Eng35Tests.Accept_Xyz(xyz);
            //Console.WriteLine(Eng35Tests.Accept_Xyz(xyz));
            Eng35Tests.Array_loop_queue_stack(numArray);
            //How_Many_Numbers_Divisible_by
            Eng35Tests.How_Many_Numbers_Divisible_by(2, 10, 4);
            Console.WriteLine(Eng35Tests.How_Many_Numbers_Divisible_by(2, 10, 4));

            //return sum
            Console.WriteLine(Eng35Tests.Return_Sum_of_array(ra));


            //method to accept x,y,n

            //snap test
            Eng35Tests.snapTest(snaptest);
        }
Esempio n. 2
0
        public void snapTest(int [] stest, int expected)
        {
            var actual = Eng35Tests.snapTest(stest);

            Assert.AreEqual(expected, actual);
        }