public void RemoveAttribute_should_be_nop() { DomContainer doc = new DomDocument().AppendElement("s"); var text = doc.AppendCDataSection(" "); Assert.Same(text, text.RemoveAttribute("anything")); }
public void HasAttribute_should_be_false() { DomContainer doc = new DomDocument().AppendElement("s"); var text = doc.AppendCDataSection(" "); Assert.False(text.HasAttribute("anything")); }