diff options
author | Marcos Henrich <marcos.henrich@xamarin.com> | 2016-08-01 13:06:47 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2016-10-29 15:09:34 +0300 |
commit | 591368251320e6c5b0c1b752b2c86b1aabf4e8ac (patch) | |
tree | 24b68aba51a8ead8ac2e00bfbe30549ba5fd3442 /mcs/class/System.ServiceModel | |
parent | 863dc73d1984175cb52734e1cb755c9d57de53bd (diff) |
[bcl] Replace deprecated usage of Assertion class and Is.InstanceOfType usages.
nunitlite does not contain Assertion class.
nunitlite does not implement Is.InstanceOfType, replaced usages of:
Assert.That (type, Is.InstanceOfType(typeof(T))) with Assert.IsInstanceOfType.
Diffstat (limited to 'mcs/class/System.ServiceModel')
-rw-r--r-- | mcs/class/System.ServiceModel/Test/MetadataTests/BindingTestAssertions.cs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mcs/class/System.ServiceModel/Test/MetadataTests/BindingTestAssertions.cs b/mcs/class/System.ServiceModel/Test/MetadataTests/BindingTestAssertions.cs index d9b75a637c6..583dc20edd2 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.That (extension, Is.InstanceOfType (typeof (WS.SoapBinding)), label.Get ()); + Assert.IsInstanceOfType (typeof (WS.SoapBinding), extension, 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 ()); @@ -106,9 +106,9 @@ namespace MonoTests.System.ServiceModel.MetadataTests { label.EnterScope ("http"); if (security == BasicHttpSecurityMode.Message) { - Assert.That (binding, Is.InstanceOfType (typeof(CustomBinding)), label.Get ()); + Assert.IsInstanceOfType (typeof(CustomBinding), binding, label.Get ()); } else { - Assert.That (binding, Is.InstanceOfType (typeof(BasicHttpBinding)), label.Get ()); + Assert.IsInstanceOfType (typeof(BasicHttpBinding), binding, label.Get ()); var basicHttp = (BasicHttpBinding)binding; Assert.That (basicHttp.EnvelopeVersion, Is.EqualTo (EnvelopeVersion.Soap11), label.Get ()); Assert.That (basicHttp.MessageVersion, Is.EqualTo (MessageVersion.Soap11), label.Get ()); @@ -156,7 +156,7 @@ namespace MonoTests.System.ServiceModel.MetadataTests { label.EnterScope ("text"); if (encoding == WSMessageEncoding.Text) { Assert.That (textElement, Is.Not.Null, label.Get ()); - Assert.That (textElement.WriteEncoding, Is.InstanceOfType (typeof(UTF8Encoding)), label.Get ()); + Assert.IsInstanceOfType (typeof(UTF8Encoding), textElement.WriteEncoding, label.Get ()); } else { Assert.That (textElement, Is.Null, label.Get ()); } @@ -408,9 +408,9 @@ namespace MonoTests.System.ServiceModel.MetadataTests { { label.EnterScope ("net-tcp"); if (security == SecurityMode.Message) { - Assert.That (binding, Is.InstanceOfType (typeof(CustomBinding)), label.Get ()); + Assert.IsInstanceOfType (typeof(CustomBinding), binding, label.Get ()); } else { - Assert.That (binding, Is.InstanceOfType (typeof(NetTcpBinding)), label.Get ()); + Assert.IsInstanceOfType (typeof(NetTcpBinding), binding, label.Get ()); var netTcp = (NetTcpBinding)binding; Assert.That (netTcp.EnvelopeVersion, Is.EqualTo (EnvelopeVersion.Soap12), label.Get ()); Assert.That (netTcp.MessageVersion, Is.EqualTo (MessageVersion.Soap12WSAddressing10), label.Get ()); @@ -750,7 +750,7 @@ namespace MonoTests.System.ServiceModel.MetadataTests { foreach (var node in all.ChildNodes) { if (node is XmlWhitespace) continue; - Assert.That (node, Is.InstanceOfType (typeof (XmlElement)), label.ToString ()); + Assert.IsInstanceOfType (typeof (XmlElement), node, label.ToString ()); collection.Add ((XmlElement)node); } label.LeaveScope (); @@ -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.That (op.Extensions [0], Is.InstanceOfType (typeof (WS.SoapOperationBinding)), label.Get ()); + Assert.IsInstanceOfType (typeof (WS.SoapOperationBinding), op.Extensions [0], 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.That (binding.Extensions [0], Is.InstanceOfType (typeof (WS.SoapBodyBinding)), label.Get ()); + Assert.IsInstanceOfType (typeof (WS.SoapBodyBinding), binding.Extensions [0], label.Get ()); var body = (WS.SoapBodyBinding)binding.Extensions [0]; TestSoapBody (body, soap12, label); label.LeaveScope (); |