XmlProcessingInstructionTests.cs 793 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 XmlProcessingInstructionTests : TestCase
  15. {
  16. public XmlProcessingInstructionTests () : base ("MonoTests.System.Xml.XmlProcessingInstructionTests testsuite") {}
  17. public XmlProcessingInstructionTests (string name) : base (name) {}
  18. XmlDocument document;
  19. XmlProcessingInstruction pi;
  20. protected override void SetUp ()
  21. {
  22. document = new XmlDocument ();
  23. }
  24. public void TestInnerAndOuterXml ()
  25. {
  26. pi = document.CreateProcessingInstruction ("foo", "bar");
  27. AssertEquals (String.Empty, pi.InnerXml);
  28. AssertEquals ("<?foo bar?>", pi.OuterXml);
  29. }
  30. }
  31. }