public void TrimStringTest()
        {
            string target = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam ornare sapien lacus, nec mattis lectus pharetra sit amet. Proin elementum nunc magna, ac aliquam metus placerat nec. Maecenas tempor ullamcorper erat ut imperdiet. Maecenas vulputate, arcu at dapibus rhoncus, tellus mi tincidunt ipsum, quis sodales eros nunc quis metus.";

            StringHelper helper = new StringHelper();
            target = helper.TrimStringToBlock("Nullam", "amet", target);

            Assert.AreEqual("Nullam ornare sapien lacus, nec mattis lectus pharetra sit amet", target);
        }
        public void FindStringMatchesDiffStringTestNoMatchInclude()
        {
            string target = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum sit amet, adipiscing elit. Lorem ipsum dolor amet, consectetur elit. Maecenas vulputate, arcu at dapibus rhoncus, tellus mi tincidunt ipsum, quis sodales eros nunc quis metus.";

            StringHelper helper = new StringHelper();
            List<string> list = new List<string>();
            list = helper.FindAllStringMatches(target, "Lorem", "elit", false);

            Assert.AreEqual(" ipsum dolor sit amet, consectetur adipiscing ", list[0]);
        }
        public void FindStringMatchesSameStringTest()
        {
            string target = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam ornare sapien lacus, nec mattis lectus pharetra sit amet. Proin elementum nunc magna, ac aliquam metus placerat nec. Maecenas tempor ullamcorper erat ut imperdiet. Maecenas vulputate, arcu at dapibus rhoncus, tellus mi tincidunt ipsum, quis sodales eros nunc quis metus.";

            StringHelper helper = new StringHelper();
            List<string> list = new List<string>();
            list = helper.FindAllStringMatches(target, "amet");

            Assert.AreEqual(list.Count, 2);
        }
        public void FindStringMatchDiffStringTest()
        {
            string target = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum sit amet, adipiscing elit. Lorem ipsum dolor amet, consectetur elit. Maecenas vulputate, arcu at dapibus rhoncus, tellus mi tincidunt ipsum, quis sodales eros nunc quis metus.";

            StringHelper helper = new StringHelper();
            string str = "";
            str = helper.FindStringMatch(target, "Lorem", "elit");

            Assert.AreEqual(str, "Lorem ipsum dolor sit amet, consectetur adipiscing elit");
        }