sorry, forgot to add it.
[mono.git] / mcs / class / System.XML / Test / XmlProcessingInstructionTests.cs
1 //
2 // System.Xml.XmlTextWriterTests
3 //
4 // Author:
5 //   Kral Ferch <kral_ferch@hotmail.com>
6 //
7 // (C) 2002 Kral Ferch
8 //
9
10 using System;
11 using System.Xml;
12 using NUnit.Framework;
13
14 namespace MonoTests.System.Xml
15 {
16         public class XmlProcessingInstructionTests : TestCase
17         {
18                 public XmlProcessingInstructionTests () : base ("MonoTests.System.Xml.XmlProcessingInstructionTests testsuite") {}
19                 public XmlProcessingInstructionTests (string name) : base (name) {}
20
21                 XmlDocument document;
22                 XmlProcessingInstruction pi;
23
24                 protected override void SetUp ()
25                 {
26                         document = new XmlDocument ();
27                 }
28
29                 public void TestInnerAndOuterXml ()
30                 {
31                         pi = document.CreateProcessingInstruction ("foo", "bar");
32                         AssertEquals (String.Empty, pi.InnerXml);
33                         AssertEquals ("<?foo bar?>", pi.OuterXml);
34                 }
35         }
36 }