예제 #1
0
        public void StripNotPseudoClassContent_ElementWithPseudoClass_ReturnsOriginalSelector()
        {
            var expected = "li:first-child";
            var selector = new CssSelector(expected);

            Assert.AreEqual(expected, selector.StripNotPseudoClassContent().ToString());
        }
예제 #2
0
        public void StripNotPseudoClassContent_ElementWithNotPseudoClass_ReturnsSelectorWithoutNot()
        {
            var selector = new CssSelector("li:not(.ignored)");

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