示例#1
0
        public void Abba(string a, string b, string Expected)
        {
            //arrange instantiating objects
            StringWarmups WarmUp = new StringWarmups();

            //act Method
            string result = WarmUp.Abba(a, b);

            //assert testing result
            Assert.AreEqual(Expected, result);
        }
示例#2
0
        public void MultipleEndings(string str, string Expected)
        {
            //arrange instantiating objects
            StringWarmups WarmUp = new StringWarmups();

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

            //assert testing result
            Assert.AreEqual(Expected, result);
        }
示例#3
0
        public void MakeTags(string tag, string content, string Expected)
        {
            //arrange instantiating objects
            StringWarmups WarmUp = new StringWarmups();

            //act Method
            string result = WarmUp.MakeTags(tag, content);

            //assert testing result
            Assert.AreEqual(Expected, result);
        }
示例#4
0
        public void HasBad(string str, bool Expected)
        {
            //arrange instantiating objects
            StringWarmups WarmUp = new StringWarmups();

            //act Method
            bool result = WarmUp.HasBad(str);

            //assert testing result
            Assert.AreEqual(Expected, result);
        }
示例#5
0
        public void FrontAndBack(string str, int n, string Expected)
        {
            //arrange instantiating objects
            StringWarmups WarmUp = new StringWarmups();

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

            //assert testing result
            Assert.AreEqual(Expected, result);
        }
示例#6
0
        public void TakeTwoFromPosition(string str, int n, string Expected)
        {
            //arrange instantiating objects
            StringWarmups WarmUp = new StringWarmups();

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

            //assert testing result
            Assert.AreEqual(Expected, result);
        }
示例#7
0
        public void TakeOne(string str, bool fromFront, string Expected)
        {
            //arrange instantiating objects
            StringWarmups WarmUp = new StringWarmups();

            //act Method
            string result = WarmUp.TakeOne(str, fromFront);

            //assert testing result
            Assert.AreEqual(Expected, result);
        }
示例#8
0
        public void SayHi(string Input, string Expected)
        {
            //arrange instantiating objects
            StringWarmups WarmUp = new StringWarmups();

            //act Method
            string result = WarmUp.SayHi(Input);

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