public void AppendProcessingInstructionEmptyContent() { XmlBuilder xmlBuilder = new XmlBuilder(); xmlBuilder.AppendProcessingInstruction("xml", string.Empty); Assert.AreEqual("<?xml?>", xmlBuilder.ToString()); }
public void AppendProcessingInstruction() { XmlBuilder xmlBuilder = new XmlBuilder(); xmlBuilder.AppendProcessingInstruction("xml", "version=\"1.0\""); Assert.AreEqual("<?xml version=\"1.0\"?>", xmlBuilder.ToString()); }
public void AppendProcessingInstructionNullTarget() { XmlBuilder xmlBuilder = new XmlBuilder(); xmlBuilder.AppendProcessingInstruction(null, string.Empty); }