public void ContainsSection_WithStringValueNotRepresentingParagraph_ShouldReturnFalse()
        {
            Mock <IMsBuildElementHelpParagraph> paragraphOne = new Mock <IMsBuildElementHelpParagraph>();

            paragraphOne.Setup(p => p.Name).Returns("EITHERNOTRELEVANT");
            Mock <IMsBuildElementHelpParagraph> paragraphTwo = new Mock <IMsBuildElementHelpParagraph>();

            paragraphTwo.Setup(p => p.Name).Returns("NOTRELEVANT");

            IList <IMsBuildElementHelpParagraph> paragraphsList = new List <IMsBuildElementHelpParagraph>()
            {
                paragraphOne.Object, paragraphTwo.Object
            };

            MsBuildElementHelp sutHelp = new MsBuildElementHelp(paragraphsList);

            Assert.IsFalse(sutHelp.ContainsSection("SEARCH", StringComparison.Ordinal),
                           "No named paragraph like the search string in the list should return false.");
        }
        ContainsSection_WithStringValueWithDifferentCaseParagraphWithStringOrdinalIgnoreCase_ShouldReturnTrue()
        {
            string searchPattern = "JOHNDOE";

            Mock <IMsBuildElementHelpParagraph> paragraphOne = new Mock <IMsBuildElementHelpParagraph>();

            paragraphOne.Setup(p => p.Name).Returns(searchPattern);
            Mock <IMsBuildElementHelpParagraph> paragraphTwo = new Mock <IMsBuildElementHelpParagraph>();

            paragraphTwo.Setup(p => p.Name).Returns("NOTRELEVANT");

            IList <IMsBuildElementHelpParagraph> paragraphsList = new List <IMsBuildElementHelpParagraph>()
            {
                paragraphOne.Object, paragraphTwo.Object
            };

            MsBuildElementHelp sutHelp = new MsBuildElementHelp(paragraphsList);

            Assert.IsTrue(sutHelp.ContainsSection(searchPattern.ToLower(), StringComparison.OrdinalIgnoreCase),
                          "Same string value with different case should return true if string comparision is set to ignore case");
        }