Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2009-02-10 07:09:27 +0300
committerAtsushi Eno <atsushieno@gmail.com>2009-02-10 07:09:27 +0300
commitc225d87477496a3f160bb35269b4a9de91f85ca2 (patch)
treed24e4b332541c6e3fe73f54e74d276e0a31a47a0 /mcs/class/System.XML/Test
parentafc88b11693c4e3e111e38664c958d39f625c3b8 (diff)
2009-02-10 Atsushi Enomoto <atsushi@ximian.com>
* XmlTextWriter2.cs : similar fix in WriteStartElement() to previous change. Fixed bug #474091. * XmlTextWriterTests.cs : added test for bug #474091. svn path=/trunk/mcs/; revision=126417
Diffstat (limited to 'mcs/class/System.XML/Test')
-rw-r--r--mcs/class/System.XML/Test/System.Xml/ChangeLog4
-rw-r--r--mcs/class/System.XML/Test/System.Xml/XmlTextWriterTests.cs13
2 files changed, 17 insertions, 0 deletions
diff --git a/mcs/class/System.XML/Test/System.Xml/ChangeLog b/mcs/class/System.XML/Test/System.Xml/ChangeLog
index 9d8b53b01fd..8e01e6a45b1 100644
--- a/mcs/class/System.XML/Test/System.Xml/ChangeLog
+++ b/mcs/class/System.XML/Test/System.Xml/ChangeLog
@@ -1,3 +1,7 @@
+2009-02-10 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XmlTextWriterTests.cs : added test for bug #474091.
+
2009-02-09 Atsushi Enomoto <atsushi@ximian.com>
* XmlElementTests.cs : added test for bug #464394.
diff --git a/mcs/class/System.XML/Test/System.Xml/XmlTextWriterTests.cs b/mcs/class/System.XML/Test/System.Xml/XmlTextWriterTests.cs
index 176bf71cfa7..36651e61955 100644
--- a/mcs/class/System.XML/Test/System.Xml/XmlTextWriterTests.cs
+++ b/mcs/class/System.XML/Test/System.Xml/XmlTextWriterTests.cs
@@ -2332,6 +2332,19 @@ namespace MonoTests.System.Xml
Assert.AreEqual ("<root xmlns:abc=\"uri:abcnamespace\" abc:def=\"value\" />", sw.ToString ());
}
+ [Test]
+ public void WriteElementPrefixedNullNamespace ()
+ {
+ StringWriter sw = new StringWriter ();
+ XmlWriter xw = new XmlTextWriter (sw);
+ xw.WriteStartElement ("root");
+ xw.WriteAttributeString ("xmlns", "abc", null, "uri:abcnamespace");
+ xw.WriteStartElement ("abc", "def", null);
+ xw.WriteEndElement ();
+ xw.WriteEndElement ();
+ Assert.AreEqual ("<root xmlns:abc=\"uri:abcnamespace\"><abc:def /></root>", sw.ToString ());
+ }
+
#if NET_2_0
[Test]
[ExpectedException (typeof (InvalidOperationException))]