Esempio n. 1
0
        public void SubstringMatch(string a, string b, int Expected)
        {
            //arrange instantiating objects
            LoopWarmups WarmUp = new LoopWarmups();

            //act Method
            int result = WarmUp.SubStringMatch(a, b);

            //assert testing result
            Assert.AreEqual(Expected, result);
        }
Esempio n. 2
0
        public void StringX(string str, string Expected)
        {
            //arrange instantiating objects
            LoopWarmups WarmUp = new LoopWarmups();

            //act Method
            string result = WarmUp.StringX(str);

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

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

            //assert testing result
            Assert.AreEqual(Expected, result);
        }
Esempio n. 4
0
        public void FrontTimes(string str, int n, string Expected)
        {
            //arrange instantiating objects
            LoopWarmups WarmUp = new LoopWarmups();

            //act Method
            string result = WarmUp.FrontTimes(str, n);

            //assert testing result
            Assert.AreEqual(Expected, result);
        }
Esempio n. 5
0
        public void CountLast2(string str, int Expected)
        {
            //arrange instantiating objects
            LoopWarmups WarmUp = new LoopWarmups();

            //act Method
            int result = WarmUp.CountLast2(str);

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

            //act Method
            int result = WarmUp.Count9(numbers);

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