diff options
author | Chris Hamons <chris.hamons@xamarin.com> | 2017-01-11 01:59:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-11 01:59:08 +0300 |
commit | bb0564ff3c09a56155d94ae13498500efc6fb74b (patch) | |
tree | 88738cedf3398de5f1bb314d9ff254c258ffe161 /mcs/class/System.XML/Test | |
parent | 6c97220ddcb7e8a06892c747984685bf30d0b9a7 (diff) |
Mono BCL test fixes so XM can run them (#4210)
Diffstat (limited to 'mcs/class/System.XML/Test')
-rw-r--r-- | mcs/class/System.XML/Test/System.Xml.Serialization/XmlCodeExporterTests.cs | 2 | ||||
-rw-r--r-- | mcs/class/System.XML/Test/System.Xml/XmlSecureResolverTests.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mcs/class/System.XML/Test/System.Xml.Serialization/XmlCodeExporterTests.cs b/mcs/class/System.XML/Test/System.Xml.Serialization/XmlCodeExporterTests.cs index e8bdfd8829c..bb8222543c4 100644 --- a/mcs/class/System.XML/Test/System.Xml.Serialization/XmlCodeExporterTests.cs +++ b/mcs/class/System.XML/Test/System.Xml.Serialization/XmlCodeExporterTests.cs @@ -8,7 +8,7 @@ // (C) 2006 Novell // -#if !MOBILE +#if !MOBILE && !MONOMAC using System; using System.CodeDom; diff --git a/mcs/class/System.XML/Test/System.Xml/XmlSecureResolverTests.cs b/mcs/class/System.XML/Test/System.Xml/XmlSecureResolverTests.cs index 2624f2a5ba0..5de770652f7 100644 --- a/mcs/class/System.XML/Test/System.Xml/XmlSecureResolverTests.cs +++ b/mcs/class/System.XML/Test/System.Xml/XmlSecureResolverTests.cs @@ -136,7 +136,7 @@ namespace MonoTests.System.Xml Assert.AreEqual ("file", resolved.Scheme); var task = sr.GetEntityAsync (resolved, null, typeof (Stream)); Assert.That (task.Wait (3000)); - Assert.IsInstanceOfType (typeof (FileStream), task.Result); + Assert.IsTrue (task.Result is FileStream, "Unexpected type: " + task.Result.GetType()); } } |