Files
mono/mcs/class/System.XML/Test/System.Xml/XmlProcessingInstructionTests.cs
Robert Jordan bd7622796a 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=137010
2009-06-26 21:06:21 +00:00

39 lines
702 B
C#

//
// System.Xml.XmlTextWriterTests
//
// Authors:
// Kral Ferch <[email protected]>
// Martin Willemoes Hansen <[email protected]>
//
// (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);
}
}
}