示例#1
0
        public void AppendProcessingInstructionEmptyContent()
        {
            XmlBuilder xmlBuilder = new XmlBuilder();

            xmlBuilder.AppendProcessingInstruction("xml", string.Empty);

            Assert.AreEqual("<?xml?>", xmlBuilder.ToString());
        }
示例#2
0
        public void AppendProcessingInstruction()
        {
            XmlBuilder xmlBuilder = new XmlBuilder();

            xmlBuilder.AppendProcessingInstruction("xml", "version=\"1.0\"");

            Assert.AreEqual("<?xml version=\"1.0\"?>", xmlBuilder.ToString());
        }
示例#3
0
        public void AppendProcessingInstructionNullTarget()
        {
            XmlBuilder xmlBuilder = new XmlBuilder();

            xmlBuilder.AppendProcessingInstruction(null, string.Empty);
        }