示例#1
0
        public void NotParagraph()
        {
            var pSelector = new TagStyleSelector("p");
            var not       = new NotPseudoClass(pSelector);
            var p         = new Paragraph();

            Assert.True(pSelector.Matches(p));
            Assert.False(not.Matches(p));
        }
示例#2
0
        public void NotSpan()
        {
            var pSelector = new TagStyleSelector("p");
            var not       = new NotPseudoClass(pSelector);
            var leaf      = new TextLeaf
            {
                Tag = "span"
            };

            Assert.False(pSelector.Matches(leaf));
            Assert.True(not.Matches(leaf));
        }