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:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2016-09-05 20:33:04 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2016-10-29 15:09:39 +0300
commit1a89bfde05bef4e8f2b018bc20fdbf6650a0209c (patch)
tree98a357aaac0b90925634037f147a8337b3c2ee2e /mcs/class/System.XML
parentfbf1acd6982aa19951e01d999d226e36b1bf21aa (diff)
[System.Xml/System.ServiceModel/Dataflow] Use more specific type in assert
Apparently nunitlite is more strict here so we need to allow subclasses as well and test for the more specific type.
Diffstat (limited to 'mcs/class/System.XML')
-rw-r--r--mcs/class/System.XML/Test/System.Xml/XmlSecureResolverTests.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System.XML/Test/System.Xml/XmlSecureResolverTests.cs b/mcs/class/System.XML/Test/System.Xml/XmlSecureResolverTests.cs
index 493bc6a8ad0..2624f2a5ba0 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 (Stream), task.Result);
+ Assert.IsInstanceOfType (typeof (FileStream), task.Result);
}
}