diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2016-09-05 20:33:04 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2016-10-29 15:09:39 +0300 |
commit | 1a89bfde05bef4e8f2b018bc20fdbf6650a0209c (patch) | |
tree | 98a357aaac0b90925634037f147a8337b3c2ee2e /mcs/class/System.ServiceModel | |
parent | fbf1acd6982aa19951e01d999d226e36b1bf21aa (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.ServiceModel')
-rw-r--r-- | mcs/class/System.ServiceModel/Test/MetadataTests/BindingTestAssertions.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mcs/class/System.ServiceModel/Test/MetadataTests/BindingTestAssertions.cs b/mcs/class/System.ServiceModel/Test/MetadataTests/BindingTestAssertions.cs index 583dc20edd2..8942c7abf32 100644 --- a/mcs/class/System.ServiceModel/Test/MetadataTests/BindingTestAssertions.cs +++ b/mcs/class/System.ServiceModel/Test/MetadataTests/BindingTestAssertions.cs @@ -90,7 +90,7 @@ namespace MonoTests.System.ServiceModel.MetadataTests { static void CheckSoapBinding (object extension, string transport, TestLabel label) { label.EnterScope ("soap"); - Assert.IsInstanceOfType (typeof (WS.SoapBinding), extension, label.Get ()); + Assert.That (extension, Is.AssignableTo<WS.SoapBinding>(), label.Get ()); var soap = (WS.SoapBinding)extension; Assert.That (soap.Style, Is.EqualTo (WS.SoapBindingStyle.Document), label.Get ()); Assert.That (soap.Transport, Is.EqualTo (transport), label.Get ()); @@ -788,7 +788,7 @@ namespace MonoTests.System.ServiceModel.MetadataTests { label.EnterScope ("extensions"); Assert.That (op.Extensions, Is.Not.Null, label.Get ()); Assert.That (op.Extensions.Count, Is.EqualTo (1), label.Get ()); - Assert.IsInstanceOfType (typeof (WS.SoapOperationBinding), op.Extensions [0], label.Get ()); + Assert.That (op.Extensions [0], Is.AssignableTo<WS.SoapOperationBinding>(), label.Get ()); var soap = (WS.SoapOperationBinding)op.Extensions [0]; TestSoap (soap, soap12, label); label.LeaveScope (); @@ -820,7 +820,7 @@ namespace MonoTests.System.ServiceModel.MetadataTests { Assert.That (binding.ExtensibleAttributes, Is.Null, label.Get ()); Assert.That (binding.Extensions, Is.Not.Null, label.Get ()); Assert.That (binding.Extensions.Count, Is.EqualTo (1), label.Get ()); - Assert.IsInstanceOfType (typeof (WS.SoapBodyBinding), binding.Extensions [0], label.Get ()); + Assert.That (binding.Extensions [0], Is.AssignableTo<WS.SoapBodyBinding> (), label.Get ()); var body = (WS.SoapBodyBinding)binding.Extensions [0]; TestSoapBody (body, soap12, label); label.LeaveScope (); |