diff options
Diffstat (limited to 'mcs/class/System.XML/Test/System.Xml.Schema/XmlSchemaSetTests.cs')
-rw-r--r-- | mcs/class/System.XML/Test/System.Xml.Schema/XmlSchemaSetTests.cs | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/mcs/class/System.XML/Test/System.Xml.Schema/XmlSchemaSetTests.cs b/mcs/class/System.XML/Test/System.Xml.Schema/XmlSchemaSetTests.cs index 20ad97f68b2..56a066c6760 100644 --- a/mcs/class/System.XML/Test/System.Xml.Schema/XmlSchemaSetTests.cs +++ b/mcs/class/System.XML/Test/System.Xml.Schema/XmlSchemaSetTests.cs @@ -56,22 +56,9 @@ namespace MonoTests.System.Xml } [Test] - public void AddSchemaThenReader () - { - XmlSchemaSet ss = new XmlSchemaSet (); - XmlDocument doc = new XmlDocument (); - doc.LoadXml ("<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' />"); - XmlSchema xs = new XmlSchema (); - xs.TargetNamespace = "ab"; - ss.Add (xs); - ss.Add ("ab", new XmlNodeReader (doc)); - } - - [Test] - [Category ("NotWorking")] // How can we differentiate this - // case and the testcase above? + [Ignore ("This behavior might be changed, since Add(XmlSchema) does not throw any exceptions, while this does.")] [ExpectedException (typeof (ArgumentException))] - public void AddReaderTwice () + public void AddTwice () { XmlSchemaSet ss = new XmlSchemaSet (); XmlDocument doc = new XmlDocument (); @@ -81,16 +68,6 @@ namespace MonoTests.System.Xml } [Test] - public void AddSchemaTwice () - { - XmlSchemaSet ss = new XmlSchemaSet (); - XmlDocument doc = new XmlDocument (); - doc.LoadXml ("<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' targetNamespace='urn:ab' />"); - ss.Add (XmlSchema.Read (new XmlNodeReader (doc), null)); - ss.Add (XmlSchema.Read (new XmlNodeReader (doc), null)); - } - - [Test] public void CompilationSettings () { Assert.IsNotNull (new XmlSchemaSet ().CompilationSettings); |