summaryrefslogtreecommitdiff
path: root/mcs/class/System.XML/Test/System.Xml.Schema/XmlSchemaValidatorTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.XML/Test/System.Xml.Schema/XmlSchemaValidatorTests.cs')
-rwxr-xr-x[-rw-r--r--]mcs/class/System.XML/Test/System.Xml.Schema/XmlSchemaValidatorTests.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/mcs/class/System.XML/Test/System.Xml.Schema/XmlSchemaValidatorTests.cs b/mcs/class/System.XML/Test/System.Xml.Schema/XmlSchemaValidatorTests.cs
index 6f7ec34a5d..081f2c76d4 100644..100755
--- a/mcs/class/System.XML/Test/System.Xml.Schema/XmlSchemaValidatorTests.cs
+++ b/mcs/class/System.XML/Test/System.Xml.Schema/XmlSchemaValidatorTests.cs
@@ -441,6 +441,16 @@ namespace MonoTests.System.Xml
}
}
}
+
+ [Test]
+ public void IgnoresInvalidBaseUri ()
+ {
+ var source = new StringReader (@"<?xml version='1.0' encoding='utf-8'?><Test></Test>");
+ var readerSettings = new XmlReaderSettings { ValidationType = ValidationType.Schema };
+ var reader = XmlReader.Create (source, readerSettings, "invalidBaseUri");
+
+ Assert.IsNotNull (reader);
+ }
}
}