예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }