diff options
author | Kral Ferch <kral@mono-cvs.ximian.com> | 2002-04-09 05:37:48 +0400 |
---|---|---|
committer | Kral Ferch <kral@mono-cvs.ximian.com> | 2002-04-09 05:37:48 +0400 |
commit | 3100718d559ec38bae91e9821297b615be8a765f (patch) | |
tree | ee167462ea5fca35599fc503cb03b7eb876673ab /mcs/class/System.XML/Test/XmlProcessingInstructionTests.cs | |
parent | 179e84ae4bbe8c1f84c16e8f0b91a978c2402b8e (diff) |
Initial check-in.
svn path=/trunk/mcs/; revision=3703
Diffstat (limited to 'mcs/class/System.XML/Test/XmlProcessingInstructionTests.cs')
-rw-r--r-- | mcs/class/System.XML/Test/XmlProcessingInstructionTests.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/mcs/class/System.XML/Test/XmlProcessingInstructionTests.cs b/mcs/class/System.XML/Test/XmlProcessingInstructionTests.cs new file mode 100644 index 00000000000..532312b7e3e --- /dev/null +++ b/mcs/class/System.XML/Test/XmlProcessingInstructionTests.cs @@ -0,0 +1,36 @@ +// +// System.Xml.XmlTextWriterTests +// +// Author: +// Kral Ferch <kral_ferch@hotmail.com> +// +// (C) 2002 Kral Ferch +// + +using System; +using System.Xml; +using NUnit.Framework; + +namespace Ximian.Mono.Tests +{ + public class XmlProcessingInstructionTests : TestCase + { + public XmlProcessingInstructionTests () : base ("Ximian.Mono.Tests.XmlProcessingInstructionTests testsuite") {} + public XmlProcessingInstructionTests (string name) : base (name) {} + + XmlDocument document; + XmlProcessingInstruction pi; + + protected override void SetUp () + { + document = new XmlDocument (); + } + + public void TestInnerAndOuterXml () + { + pi = document.CreateProcessingInstruction ("foo", "bar"); + AssertEquals (String.Empty, pi.InnerXml); + AssertEquals ("<?foo bar?>", pi.OuterXml); + } + } +} |