| 123456789101112131415161718192021222324252627282930313233343536 |
- //
- // System.Xml.XmlTextWriterTests
- //
- // Author:
- // Kral Ferch <[email protected]>
- //
- // (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);
- }
- }
- }
|