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)); }
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)); }