public void StripNotPseudoClassContent_ElementWithPseudoClass_ReturnsOriginalSelector() { var expected = "li:first-child"; var selector = new CssSelector(expected); Assert.AreEqual(expected, selector.StripNotPseudoClassContent().ToString()); }
public void StripNotPseudoClassContent_ElementWithNotPseudoClass_ReturnsSelectorWithoutNot() { var selector = new CssSelector("li:not(.ignored)"); Assert.AreEqual("li", selector.StripNotPseudoClassContent().ToString()); }