Example #1
0
        public void MakeTagsTest(string tag, string text, string expected)
        {
            StringsWarmups sw     = new StringsWarmups();
            string         result = sw.MakeTags(tag, text);

            Assert.AreEqual(expected, result);
        }
Example #2
0
        public void InsertWordTest(string container, string word, string expected)
        {
            StringsWarmups sw     = new StringsWarmups();
            string         result = sw.InsertWord(container, word);

            Assert.AreEqual(expected, result);
        }
Example #3
0
        public void TweakFrontTest(string str, string expected)
        {
            StringsWarmups sw     = new StringsWarmups();
            string         result = sw.TweakFront(str);

            Assert.AreEqual(expected, result);
        }
Example #4
0
        public void StripXTest(string str, string expected)
        {
            StringsWarmups sw     = new StringsWarmups();
            string         result = sw.StripX(str);

            Assert.AreEqual(expected, result);
        }
Example #5
0
        public void TakeOneTest(string str, bool fromFront, string expected)
        {
            StringsWarmups sw     = new StringsWarmups();
            string         result = sw.TakeOne(str, fromFront);

            Assert.AreEqual(expected, result);
        }
Example #6
0
        public void MinCatTest(string a, string b, string expected)
        {
            StringsWarmups sw     = new StringsWarmups();
            string         result = sw.MinCat(a, b);

            Assert.AreEqual(expected, result);
        }
Example #7
0
        public void HasBadTest(string str, bool expected)
        {
            StringsWarmups sw     = new StringsWarmups();
            bool           result = sw.HasBad(str);

            Assert.AreEqual(expected, result);
        }
Example #8
0
        public void TrimOneTest(string str, string expected)
        {
            StringsWarmups sw     = new StringsWarmups();
            string         result = sw.TrimOne(str);

            Assert.AreEqual(expected, result);
        }
Example #9
0
        public void FrontAndBackTest(string str, int n, string expected)
        {
            StringsWarmups sw     = new StringsWarmups();
            string         result = sw.FrontAndBack(str, n);

            Assert.AreEqual(expected, result);
        }
Example #10
0
        public void TakeTwoFromPositionTest(string str, int n, string expected)
        {
            StringsWarmups sw     = new StringsWarmups();
            string         result = sw.TakeTwoFromPosition(str, n);

            Assert.AreEqual(expected, result);
        }
Example #11
0
        public void EndsWithLyTest(string str, bool expected)
        {
            StringsWarmups sw     = new StringsWarmups();
            bool           result = sw.EndsWithLy(str);

            Assert.AreEqual(expected, result);
        }
Example #12
0
        public void SayHiTest(string name, string expected)
        {
            StringsWarmups sw     = new StringsWarmups();
            string         result = sw.SayHi(name);

            Assert.AreEqual(expected, result);
        }
Example #13
0
        public void MiddleTwoTest(string str, string expected)
        {
            StringsWarmups sw     = new StringsWarmups();
            string         result = sw.MiddleTwo(str);

            Assert.AreEqual(expected, result);
        }
Example #14
0
        public void MultipleEndingsTest(string str, string expected)
        {
            StringsWarmups sw     = new StringsWarmups();
            string         result = sw.MultipleEndings(str);

            Assert.AreEqual(expected, result);
        }
Example #15
0
        public void LastCharsTest(string a, string b, string expected)
        {
            StringsWarmups sw     = new StringsWarmups();
            string         result = sw.LastChars(a, b);

            Assert.AreEqual(expected, result);
        }
Example #16
0
        public void FirstHalfTest(string str, string expected)
        {
            StringsWarmups sw     = new StringsWarmups();
            string         result = sw.FirstHalf(str);

            Assert.AreEqual(expected, result);
        }
Example #17
0
        public void FrontAgainTest(string str, bool expected)
        {
            StringsWarmups sw     = new StringsWarmups();
            bool           result = sw.FrontAgain(str);

            Assert.AreEqual(expected, result);
        }
Example #18
0
        public void LongInMiddleTest(string a, string b, string expected)
        {
            StringsWarmups sw     = new StringsWarmups();
            string         result = sw.LongInMiddle(a, b);

            Assert.AreEqual(expected, result);
        }
Example #19
0
        public void RotateRight2Test(string str, string expected)
        {
            StringsWarmups sw     = new StringsWarmups();
            string         result = sw.RotateRight2(str);

            Assert.AreEqual(expected, result);
        }