Esempio n. 1
0
        public void Reverse(int[] numbers, int[] Expected)
        {
            //arrange instantiating objects
            ArrayWarmups WarmUp = new ArrayWarmups();

            //act Method
            int[] result = WarmUp.Reverse(numbers);

            //assert testing result
            Assert.AreEqual(Expected, result);
        }
Esempio n. 2
0
        public void MakePi(int n, int[] Expected)
        {
            //arrange instantiating objects
            ArrayWarmups WarmUp = new ArrayWarmups();

            //act Method
            int[] result = WarmUp.MakePi(n);

            //assert testing result
            Assert.AreEqual(Expected, result);
        }
Esempio n. 3
0
        public void HasEven(int[] numbers, bool Expected)
        {
            //arrange instantiating objects
            ArrayWarmups WarmUp = new ArrayWarmups();

            //act Method
            bool result = WarmUp.HasEven(numbers);

            //assert testing result
            Assert.AreEqual(Expected, result);
        }
Esempio n. 4
0
        public void make2(int[] a, int[] b, int[] Expected)
        {
            //arrange instantiating objects
            ArrayWarmups WarmUp = new ArrayWarmups();

            //act Method
            int[] result = WarmUp.make2(a, b);

            //assert testing result
            Assert.AreEqual(Expected, result);
        }
Esempio n. 5
0
        public void commonEnd(int[] a, int[] b, bool Expected)
        {
            //arrange instantiating objects
            ArrayWarmups WarmUp = new ArrayWarmups();

            //act Method
            bool result = WarmUp.commonEnd(a, b);

            //assert testing result
            Assert.AreEqual(Expected, result);
        }