blob: a885402e354835f8671a15b8af94793d0305e182 (
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 XmlTextTests : TestCase
{
public XmlTextTests () : base ("MonoTests.System.Xml.XmlTextTests testsuite") {}
public XmlTextTests (string name) : base (name) {}
XmlDocument document;
XmlText text;
protected override void SetUp ()
{
document = new XmlDocument ();
}
public void TestInnerAndOuterXml ()
{
text = document.CreateTextNode ("&<>\"'");
AssertEquals (String.Empty, text.InnerXml);
AssertEquals ("&<>\"'", text.OuterXml);
}
}
}
|