Author: gert
Date: 2007-05-26 04:43:56 -0400 (Sat, 26 May 2007)
New Revision: 77988
Modified:
trunk/mcs/class/System.XML/Test/System.Xml/ChangeLog
trunk/mcs/class/System.XML/Test/System.Xml/XmlWriterTests.cs
Log:
* XmlWriterTests.cs: Added NotWorking Create_XmlWriter2 test.
Modified: trunk/mcs/class/System.XML/Test/System.Xml/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/Test/System.Xml/ChangeLog 2007-05-26
07:48:31 UTC (rev 77987)
+++ trunk/mcs/class/System.XML/Test/System.Xml/ChangeLog 2007-05-26
08:43:56 UTC (rev 77988)
@@ -2,7 +2,7 @@
* XmlWriterTests.cs: Renamed Close* tests to Create*, and improved
their coverage. Commented out newly introduced tests since they fail
- on Mono.
+ on Mono. Added NotWorking Create_XmlWriter2 test.
2007-05-16 Gert Driesen <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/System.XML/Test/System.Xml/XmlWriterTests.cs
===================================================================
--- trunk/mcs/class/System.XML/Test/System.Xml/XmlWriterTests.cs
2007-05-26 07:48:31 UTC (rev 77987)
+++ trunk/mcs/class/System.XML/Test/System.Xml/XmlWriterTests.cs
2007-05-26 08:43:56 UTC (rev 77988)
@@ -352,6 +352,30 @@
Assert.IsFalse (ms.CanWrite, "#D3");
}
+ [Test]
+ [Category ("NotWorking")]
+ public void Create_XmlWriter2 ()
+ {
+ MemoryStream ms = new MemoryStream ();
+ XmlWriterSettings settings = new XmlWriterSettings ();
+ XmlWriter xw = XmlWriter.Create (ms, settings);
+ XmlWriter writer = XmlWriter.Create (xw, new
XmlWriterSettings ());
+ Assert.IsNotNull (writer.Settings, "#A1");
+ Assert.IsFalse (writer.Settings.CloseOutput, "#A2");
+ writer.Close ();
+ Assert.IsTrue (ms.CanWrite, "#A3");
+
+ ms = new MemoryStream ();
+ settings = new XmlWriterSettings ();
+ settings.CloseOutput = true;
+ xw = XmlWriter.Create (ms, settings);
+ writer = XmlWriter.Create (xw, new XmlWriterSettings
());
+ Assert.IsNotNull (writer.Settings, "#B1");
+ Assert.IsTrue (writer.Settings.CloseOutput, "#B2");
+ writer.Close ();
+ Assert.IsFalse (ms.CanWrite, "#B3");
+ }
+
XPathNavigator GetNavigator (string xml)
{
return new XPathDocument (XmlReader.Create (
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches