linux-packaging-mono/mcs/class/System.XML/Test/System.Xml/XmlProcessingInstructionTests.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

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);
}
}
}