blob: 1b767d354dcd0c04b9762d4dda5a5e15846a31b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
//
// 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);
}
}
}
|