public void AppendProcessingInstruction_operations_should_use_specialization_type_by_default() { var doc = new RDocument(); var pi = doc.AppendElement("cool").AppendProcessingInstruction("k", ""); Assert.IsInstanceOf(typeof(RProcessingInstruction), pi); }
public void AppendAttribute_operations_should_use_specialization_type_by_default(Func <DomElement, DomAttribute> op) { var doc = new RDocument(); var attribute = op(doc.AppendElement("cool")); Assert.IsInstanceOf(typeof(RAttribute), attribute); }