Esempio n. 1
0
        public void TestRemoveClassAll()
        {
            var elements = new HElement[] {
                new HElement("p", "First paragraph."),
                null,
                new HElement("p", new HAttribute("class", "selected class3"), "Second paragraph is selected.")
            };

            elements.RemoveClass();

            Assert.Null(elements[0].Attribute("class"));
            Assert.Null(elements[2].Attribute("class"));
        }