|
|
@@ -116,6 +116,20 @@ namespace MonoTests.System.Xml
|
|
|
xtr.Close ();
|
|
|
}
|
|
|
|
|
|
+ [Test]
|
|
|
+ [ExpectedException (typeof (XmlException))]
|
|
|
+ public void WriteNodeError ()
|
|
|
+ {
|
|
|
+ XmlTextReader xtr = new XmlTextReader ("<root>", XmlNodeType.Document, null);
|
|
|
+ xtr.Read ();
|
|
|
+ try {
|
|
|
+ xtr.Read ();
|
|
|
+ } catch (XmlException ex) {
|
|
|
+ }
|
|
|
+ XmlTextWriter xtw = new XmlTextWriter (new StringWriter ());
|
|
|
+ xtw.WriteNode (xtr, false);
|
|
|
+ }
|
|
|
+
|
|
|
[Test]
|
|
|
public void WriteSurrogateCharEntity ()
|
|
|
{
|