public virtual void MatchesRootSelectorItemTest()
        {
            CssPseudoClassRootSelectorItem item = CssPseudoClassRootSelectorItem.GetInstance();
            IXmlParser    htmlParser            = new JsoupHtmlParser();
            IDocumentNode documentNode          = htmlParser.Parse("<div><p>Alexander</p><p>Alexander</p></div>");
            INode         headNode = documentNode.ChildNodes()[0];

            NUnit.Framework.Assert.IsTrue(item.Matches(headNode));
        }
        public virtual void MatchesRootSelectorItemTestNotTaggedText()
        {
            CssPseudoClassRootSelectorItem item = CssPseudoClassRootSelectorItem.GetInstance();
            IXmlParser    htmlParser            = new JsoupHtmlParser();
            IDocumentNode documentNode          = htmlParser.Parse("SomeText!");
            INode         bodyNode = documentNode.ChildNodes()[0].ChildNodes()[1];
            INode         divNode  = bodyNode.ChildNodes()[0];

            NUnit.Framework.Assert.IsFalse(item.Matches(divNode));
        }