a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
39 lines
702 B
C#
39 lines
702 B
C#
//
|
|
// System.Xml.XmlTextWriterTests
|
|
//
|
|
// Authors:
|
|
// Kral Ferch <kral_ferch@hotmail.com>
|
|
// Martin Willemoes Hansen <mwh@sysrq.dk>
|
|
//
|
|
// (C) 2002 Kral Ferch
|
|
// (C) 2003 Martin Willemoes Hansen
|
|
//
|
|
|
|
using System;
|
|
using System.Xml;
|
|
using NUnit.Framework;
|
|
|
|
namespace MonoTests.System.Xml
|
|
{
|
|
[TestFixture]
|
|
public class XmlProcessingInstructionTests
|
|
{
|
|
XmlDocument document;
|
|
XmlProcessingInstruction pi;
|
|
|
|
[SetUp]
|
|
public void GetReady ()
|
|
{
|
|
document = new XmlDocument ();
|
|
}
|
|
|
|
[Test]
|
|
public void InnerAndOuterXml ()
|
|
{
|
|
pi = document.CreateProcessingInstruction ("foo", "bar");
|
|
Assert.AreEqual (String.Empty, pi.InnerXml);
|
|
Assert.AreEqual ("<?foo bar?>", pi.OuterXml);
|
|
}
|
|
}
|
|
}
|