Welcome to mirror list, hosted at ThFree Co, Russian Federation.

XmlProcessingInstructionTests.cs « Test « System.XML « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0926af316aa13cb43055578d74893392734477d9 (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
//
// System.Xml.XmlTextWriterTests
//
// Author:
//   Kral Ferch <kral_ferch@hotmail.com>
//
// (C) 2002 Kral Ferch
//

using System;
using System.Xml;
using NUnit.Framework;

namespace MonoTests.System.Xml
{
	public class XmlProcessingInstructionTests : TestCase
	{
		public XmlProcessingInstructionTests () : base ("MonoTests.System.Xml.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);
		}
	}
}