XmlTextTests.cs 704 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // System.Xml.XmlTextWriterTests
  3. //
  4. // Author:
  5. // Kral Ferch <[email protected]>
  6. //
  7. // (C) 2002 Kral Ferch
  8. //
  9. using System;
  10. using System.Xml;
  11. using NUnit.Framework;
  12. namespace MonoTests.System.Xml
  13. {
  14. public class XmlTextTests : TestCase
  15. {
  16. public XmlTextTests () : base ("MonoTests.System.Xml.XmlTextTests testsuite") {}
  17. public XmlTextTests (string name) : base (name) {}
  18. XmlDocument document;
  19. XmlText text;
  20. protected override void SetUp ()
  21. {
  22. document = new XmlDocument ();
  23. }
  24. public void TestInnerAndOuterXml ()
  25. {
  26. text = document.CreateTextNode ("&<>\"'");
  27. AssertEquals (String.Empty, text.InnerXml);
  28. AssertEquals ("&amp;&lt;&gt;\"'", text.OuterXml);
  29. }
  30. }
  31. }