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
path: root/mcs
diff options
context:
space:
mode:
authorManuel de la Pena <mandel@microsoft.com>2018-01-18 21:08:03 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2018-01-18 21:08:03 +0300
commit12d676563e7f233897f866c6150c6755ef3d46d1 (patch)
treed6d96fdb2884527d28302c43215ae6f47fe239ff /mcs
parent2e029d691e3d5dc5a838f867f8feb472864a8109 (diff)
[Tests] Skip System.ServiceModel tests that are not supported on XamMac 4.5 (#6574)
Diffstat (limited to 'mcs')
-rw-r--r--mcs/class/System.ServiceModel/System.ServiceModel.Channels/SecurityBindingElement.cs2
-rw-r--r--mcs/class/System.ServiceModel/System.ServiceModel.Channels/TextMessageEncodingBindingElement.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/FeatureBased/Features.Contracts/AsyncCallTester.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/FeatureBased/Features.Contracts/FaultsTester.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/AsyncCallTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/AsyncPatternTester.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/DataContractSerializerTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/DualContractTester.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/ExitProcessHelper.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/FaultsTest.cs2
-rwxr-xr-xmcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/KnownTypeTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/MessageContractTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/OperationContractTester.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/PrimitiveTesterTest.cs2
-rwxr-xr-xmcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/UntypedMessageTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/FeatureBased/TestFixtureBase.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/MetadataTests/BindingTestAssertions.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/MetadataTests/ExportTests.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/MetadataTests/ImportTests.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/MetadataTests/ImportTests_CreateMetadata.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/MetadataTests/ImportTests_LoadMetadata.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/MetadataTests/ImportTests_RoundTrip.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/MetadataTests/MetadataSamples.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/MetadataTests/MiscImportTests.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/MetadataTests/TestContext.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/AsymmetricSecurityBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/BinaryMessageEncodingBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/BindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/ConnectionOrientedTransportBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/CustomBindingTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/CustomPolicyConversionContext.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/HandlerTransportBindingElement.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/HttpTransportBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/HttpsTransportBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/InterceptorBindingElement.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/MessageBufferTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/MessageEncoderTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/MsmqBindingElementBaseTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/MsmqTransportBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/NamedPipeTransportBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/OneWayBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/PeerTransportBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/ReplyChannelBase.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/SecurityAssert.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/SecurityBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/SslStreamSecurityBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/SymmetricSecurityBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/TcpTransportBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/TextMessageEncodingBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/TransactionFlowBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/AddressHeaderCollectionElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/BasicHttpBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/BehaviorsSectionTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/BindingsSectionTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ChannelEndpointElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/CustomBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/EndpointBehaviorElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ExtensionsSectionTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/MetadataElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/MexBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetNamedPipeBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetPeerTcpBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetTcpBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceBehaviorElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceModelConfigurationElementCollectionTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceModelSectionGroupTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardBindingCollectionElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardBindingElementCollectionTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardEndpointsSectionTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/UserBinding.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ContractDescriptionTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/MetadataExchangeBindingsTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/MetadataResolverTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceAuthorizationBehaviorTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceContractGeneratorTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceCredentialsTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceDebugBehaviorTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceMetadataBehaviorTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceMetadataEndpointTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceThrottlingBehaviorTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/TypedMessageConverterTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/WsdlExporterTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/WsdlImporterTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug32886Test.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug652331Test.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug652331_2Test.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/ChannelDispatcherTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/DispatchOperationTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/DispatchRuntimeTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/EndpointAddressMessageFilterTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/EndpointDispatcherTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/ExceptionHandlerTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/InvalidBodyAccessExceptionTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/PrefixEndpointAddressMessageFilterTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/XPathMessageContextTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.PeerResolvers/CustomPeerResolverServiceTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.PeerResolvers/PeerResolverSerializationTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/IssuedSecurityTokenParametersTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/IssuedSecurityTokenProviderTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/RsaSecurityTokenParametersTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/SecureConversationSecurityTokenParametersTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/SecurityTokenParametersTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/ServiceModelSecurityTokenTypesTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/SslSecurityTokenParametersTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/SspiSecurityTokenParametersTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/UserNameSecurityTokenParametersTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/X509SecurityTokenParametersTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Security/SecurityMessagePropertyTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Security/ServiceCredentialsSecurityTokenManagerTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Security/TransportSecurityBindingElementTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel.Security/WSSecurityTokenSerializerTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel/BasicHttpBindingTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel/Bug36080Test.cs6
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel/CallbackBehaviorAttributeTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel/ChannelFactoryTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel/ChannelFactory_1Test.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel/ClientBaseTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel/ClientCredentialsSecurityTokenManagerTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel/IntegratedConnectionTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel/MessageSecurityVersionTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel/MsmqTransportSecurityTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel/NetMsmqBindingTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel/NetPeerTcpBindingTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel/NetTcpBindingTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel/OperationContextTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel/PeerNodeAddressTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel/ServiceHostBaseTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel/ServiceHostTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel/TransactionProtocolTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel/WSFederationHttpBindingTest.cs2
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel/WSHttpBindingTest.cs2
133 files changed, 136 insertions, 134 deletions
diff --git a/mcs/class/System.ServiceModel/System.ServiceModel.Channels/SecurityBindingElement.cs b/mcs/class/System.ServiceModel/System.ServiceModel.Channels/SecurityBindingElement.cs
index ffcc6110be6..fd7a4b39222 100644
--- a/mcs/class/System.ServiceModel/System.ServiceModel.Channels/SecurityBindingElement.cs
+++ b/mcs/class/System.ServiceModel/System.ServiceModel.Channels/SecurityBindingElement.cs
@@ -44,7 +44,9 @@ namespace System.ServiceModel.Channels
{
internal SecurityBindingElement ()
{
+#if !XAMMAC_4_5
MessageSecurityVersion = MessageSecurityVersion.Default;
+#endif
endpoint = new SupportingTokenParameters ();
#if !MOBILE && !XAMMAC_4_5
DefaultAlgorithmSuite = SecurityAlgorithmSuite.Default;
diff --git a/mcs/class/System.ServiceModel/System.ServiceModel.Channels/TextMessageEncodingBindingElement.cs b/mcs/class/System.ServiceModel/System.ServiceModel.Channels/TextMessageEncodingBindingElement.cs
index 2b27840eec5..65920745a96 100644
--- a/mcs/class/System.ServiceModel/System.ServiceModel.Channels/TextMessageEncodingBindingElement.cs
+++ b/mcs/class/System.ServiceModel/System.ServiceModel.Channels/TextMessageEncodingBindingElement.cs
@@ -105,7 +105,7 @@ namespace System.ServiceModel.Channels
return base.BuildChannelFactory<TChannel> (context);
}
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
public override IChannelListener<TChannel> BuildChannelListener<TChannel> (
BindingContext context)
{
diff --git a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Contracts/AsyncCallTester.cs b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Contracts/AsyncCallTester.cs
index 1448e996d5a..d57e6671b30 100644
--- a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Contracts/AsyncCallTester.cs
+++ b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Contracts/AsyncCallTester.cs
@@ -1,4 +1,4 @@
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Contracts/FaultsTester.cs b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Contracts/FaultsTester.cs
index f771d0e250f..234f0af77aa 100644
--- a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Contracts/FaultsTester.cs
+++ b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Contracts/FaultsTester.cs
@@ -1,4 +1,4 @@
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/AsyncCallTest.cs b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/AsyncCallTest.cs
index 08950607c80..ddd13c97bba 100644
--- a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/AsyncCallTest.cs
+++ b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/AsyncCallTest.cs
@@ -1,4 +1,4 @@
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/AsyncPatternTester.cs b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/AsyncPatternTester.cs
index a94f57066fd..aa931ff4d16 100644
--- a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/AsyncPatternTester.cs
+++ b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/AsyncPatternTester.cs
@@ -1,4 +1,4 @@
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/DataContractSerializerTest.cs b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/DataContractSerializerTest.cs
index 12130494169..3b635d1917c 100644
--- a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/DataContractSerializerTest.cs
+++ b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/DataContractSerializerTest.cs
@@ -1,4 +1,4 @@
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/DualContractTester.cs b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/DualContractTester.cs
index 6202e161c11..1cedd4284c1 100644
--- a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/DualContractTester.cs
+++ b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/DualContractTester.cs
@@ -1,4 +1,4 @@
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/ExitProcessHelper.cs b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/ExitProcessHelper.cs
index 59306dfa9d3..88869ce889a 100644
--- a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/ExitProcessHelper.cs
+++ b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/ExitProcessHelper.cs
@@ -1,4 +1,4 @@
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/FaultsTest.cs b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/FaultsTest.cs
index 979cb158deb..96763f5f518 100644
--- a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/FaultsTest.cs
+++ b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/FaultsTest.cs
@@ -1,4 +1,4 @@
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/KnownTypeTest.cs b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/KnownTypeTest.cs
index 44d2af0902d..06a76b00c1c 100755
--- a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/KnownTypeTest.cs
+++ b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/KnownTypeTest.cs
@@ -1,4 +1,4 @@
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/MessageContractTest.cs b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/MessageContractTest.cs
index b1af2f6d873..a1bcfab5a31 100644
--- a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/MessageContractTest.cs
+++ b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/MessageContractTest.cs
@@ -1,4 +1,4 @@
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/OperationContractTester.cs b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/OperationContractTester.cs
index f4ab7c9066f..e15a3957196 100644
--- a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/OperationContractTester.cs
+++ b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/OperationContractTester.cs
@@ -1,4 +1,4 @@
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/PrimitiveTesterTest.cs b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/PrimitiveTesterTest.cs
index 8324a840425..4b73bf157b9 100644
--- a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/PrimitiveTesterTest.cs
+++ b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/PrimitiveTesterTest.cs
@@ -1,5 +1,5 @@

-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/UntypedMessageTest.cs b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/UntypedMessageTest.cs
index 70f18cbc4e6..4e895329e26 100755
--- a/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/UntypedMessageTest.cs
+++ b/mcs/class/System.ServiceModel/Test/FeatureBased/Features.Serialization/UntypedMessageTest.cs
@@ -1,4 +1,4 @@
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/FeatureBased/TestFixtureBase.cs b/mcs/class/System.ServiceModel/Test/FeatureBased/TestFixtureBase.cs
index 095c8e9a4f1..c624929bea0 100644
--- a/mcs/class/System.ServiceModel/Test/FeatureBased/TestFixtureBase.cs
+++ b/mcs/class/System.ServiceModel/Test/FeatureBased/TestFixtureBase.cs
@@ -1,4 +1,4 @@
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/MetadataTests/BindingTestAssertions.cs b/mcs/class/System.ServiceModel/Test/MetadataTests/BindingTestAssertions.cs
index 5d436781c2f..095f627dc7b 100644
--- a/mcs/class/System.ServiceModel/Test/MetadataTests/BindingTestAssertions.cs
+++ b/mcs/class/System.ServiceModel/Test/MetadataTests/BindingTestAssertions.cs
@@ -23,7 +23,7 @@
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Net;
using System.Net.Security;
diff --git a/mcs/class/System.ServiceModel/Test/MetadataTests/ExportTests.cs b/mcs/class/System.ServiceModel/Test/MetadataTests/ExportTests.cs
index d66c471b9f4..58dc43ccd41 100644
--- a/mcs/class/System.ServiceModel/Test/MetadataTests/ExportTests.cs
+++ b/mcs/class/System.ServiceModel/Test/MetadataTests/ExportTests.cs
@@ -23,7 +23,7 @@
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Net;
diff --git a/mcs/class/System.ServiceModel/Test/MetadataTests/ImportTests.cs b/mcs/class/System.ServiceModel/Test/MetadataTests/ImportTests.cs
index 3ff235e6e36..98d71a11e09 100644
--- a/mcs/class/System.ServiceModel/Test/MetadataTests/ImportTests.cs
+++ b/mcs/class/System.ServiceModel/Test/MetadataTests/ImportTests.cs
@@ -23,7 +23,7 @@
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Net;
using System.Xml;
diff --git a/mcs/class/System.ServiceModel/Test/MetadataTests/ImportTests_CreateMetadata.cs b/mcs/class/System.ServiceModel/Test/MetadataTests/ImportTests_CreateMetadata.cs
index 3ea1239012b..93060d32949 100644
--- a/mcs/class/System.ServiceModel/Test/MetadataTests/ImportTests_CreateMetadata.cs
+++ b/mcs/class/System.ServiceModel/Test/MetadataTests/ImportTests_CreateMetadata.cs
@@ -24,7 +24,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using NUnit.Framework;
diff --git a/mcs/class/System.ServiceModel/Test/MetadataTests/ImportTests_LoadMetadata.cs b/mcs/class/System.ServiceModel/Test/MetadataTests/ImportTests_LoadMetadata.cs
index 15fb95e7f3e..626d61afa47 100644
--- a/mcs/class/System.ServiceModel/Test/MetadataTests/ImportTests_LoadMetadata.cs
+++ b/mcs/class/System.ServiceModel/Test/MetadataTests/ImportTests_LoadMetadata.cs
@@ -24,7 +24,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Net;
using System.Xml;
diff --git a/mcs/class/System.ServiceModel/Test/MetadataTests/ImportTests_RoundTrip.cs b/mcs/class/System.ServiceModel/Test/MetadataTests/ImportTests_RoundTrip.cs
index c6e200f51da..85521dcb39b 100644
--- a/mcs/class/System.ServiceModel/Test/MetadataTests/ImportTests_RoundTrip.cs
+++ b/mcs/class/System.ServiceModel/Test/MetadataTests/ImportTests_RoundTrip.cs
@@ -24,7 +24,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using NUnit.Framework;
diff --git a/mcs/class/System.ServiceModel/Test/MetadataTests/MetadataSamples.cs b/mcs/class/System.ServiceModel/Test/MetadataTests/MetadataSamples.cs
index dc42ab9e5ae..3bff7537e9a 100644
--- a/mcs/class/System.ServiceModel/Test/MetadataTests/MetadataSamples.cs
+++ b/mcs/class/System.ServiceModel/Test/MetadataTests/MetadataSamples.cs
@@ -23,7 +23,7 @@
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.IO;
using System.Reflection;
diff --git a/mcs/class/System.ServiceModel/Test/MetadataTests/MiscImportTests.cs b/mcs/class/System.ServiceModel/Test/MetadataTests/MiscImportTests.cs
index 343ed045ef2..2327b218e7f 100644
--- a/mcs/class/System.ServiceModel/Test/MetadataTests/MiscImportTests.cs
+++ b/mcs/class/System.ServiceModel/Test/MetadataTests/MiscImportTests.cs
@@ -23,7 +23,7 @@
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Net;
using System.Xml;
diff --git a/mcs/class/System.ServiceModel/Test/MetadataTests/TestContext.cs b/mcs/class/System.ServiceModel/Test/MetadataTests/TestContext.cs
index 2c960ae3558..c8d0d86d513 100644
--- a/mcs/class/System.ServiceModel/Test/MetadataTests/TestContext.cs
+++ b/mcs/class/System.ServiceModel/Test/MetadataTests/TestContext.cs
@@ -23,7 +23,7 @@
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.IO;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/AsymmetricSecurityBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/AsymmetricSecurityBindingElementTest.cs
index 0e5d7157574..a5ad0952d45 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/AsymmetricSecurityBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/AsymmetricSecurityBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/BinaryMessageEncodingBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/BinaryMessageEncodingBindingElementTest.cs
index c0b39c39092..9a523bea390 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/BinaryMessageEncodingBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/BinaryMessageEncodingBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.IO;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/BindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/BindingElementTest.cs
index 94229cca6d8..656e1fd3867 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/BindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/BindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/ConnectionOrientedTransportBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/ConnectionOrientedTransportBindingElementTest.cs
index 5d3e405012d..263f62b1bae 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/ConnectionOrientedTransportBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/ConnectionOrientedTransportBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.ServiceModel;
using System.ServiceModel.Channels;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/CustomBindingTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/CustomBindingTest.cs
index 43f22b2c8d7..5b7a1eaa342 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/CustomBindingTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/CustomBindingTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.Net.Security;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/CustomPolicyConversionContext.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/CustomPolicyConversionContext.cs
index a1b3779b55e..8e6ea1db39b 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/CustomPolicyConversionContext.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/CustomPolicyConversionContext.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.ServiceModel;
using System.ServiceModel.Channels;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/HandlerTransportBindingElement.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/HandlerTransportBindingElement.cs
index 01e36481693..d80a4e83c2a 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/HandlerTransportBindingElement.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/HandlerTransportBindingElement.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.IO;
using System.Net;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/HttpTransportBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/HttpTransportBindingElementTest.cs
index 654cb39e915..a3ce81ad290 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/HttpTransportBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/HttpTransportBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.IO;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/HttpsTransportBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/HttpsTransportBindingElementTest.cs
index ae3c32a773e..32c0c85e6d3 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/HttpsTransportBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/HttpsTransportBindingElementTest.cs
@@ -43,7 +43,7 @@ namespace MonoTests.System.ServiceModel.Channels
[TestFixture]
public class HttpsTransportBindingElementTest
{
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
[Test]
[ExpectedException (typeof (ArgumentException))]
public void BuildChannelFactoryForHttpEndpoint ()
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/InterceptorBindingElement.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/InterceptorBindingElement.cs
index 00a3c55a69c..5cd3f900784 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/InterceptorBindingElement.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/InterceptorBindingElement.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.Net;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/MessageBufferTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/MessageBufferTest.cs
index e28a8e9f0d0..d1d6de27c52 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/MessageBufferTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/MessageBufferTest.cs
@@ -13,7 +13,7 @@ namespace MonoTests.System.ServiceModel.Channels
[TestFixture]
public class MessageBufferTest
{
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
[Test]
public void TestCreateNavigator ()
{
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/MessageEncoderTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/MessageEncoderTest.cs
index ffd3171dd96..a587fad2129 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/MessageEncoderTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/MessageEncoderTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.IO;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/MsmqBindingElementBaseTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/MsmqBindingElementBaseTest.cs
index 4ac86242fbd..3bde2caf209 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/MsmqBindingElementBaseTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/MsmqBindingElementBaseTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Net.Security;
using System.ServiceModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/MsmqTransportBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/MsmqTransportBindingElementTest.cs
index b8e5539c361..5bf0483794a 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/MsmqTransportBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/MsmqTransportBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.IO;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/NamedPipeTransportBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/NamedPipeTransportBindingElementTest.cs
index ee959c6a0ea..e51b99aff5f 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/NamedPipeTransportBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/NamedPipeTransportBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.IO;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/OneWayBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/OneWayBindingElementTest.cs
index fa8e20264fd..916a00e8528 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/OneWayBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/OneWayBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.ServiceModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/PeerTransportBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/PeerTransportBindingElementTest.cs
index f48820227eb..9ad7a09c8be 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/PeerTransportBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/PeerTransportBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.Net;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/ReplyChannelBase.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/ReplyChannelBase.cs
index e231281c276..0efec6500ce 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/ReplyChannelBase.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/ReplyChannelBase.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.IO;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/SecurityAssert.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/SecurityAssert.cs
index c0100038da6..f609a5bd709 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/SecurityAssert.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/SecurityAssert.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/SecurityBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/SecurityBindingElementTest.cs
index 5ac577f58dc..455f9b86e1b 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/SecurityBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/SecurityBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/SslStreamSecurityBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/SslStreamSecurityBindingElementTest.cs
index 4f136c87aeb..19694189ef8 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/SslStreamSecurityBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/SslStreamSecurityBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.IO;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/SymmetricSecurityBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/SymmetricSecurityBindingElementTest.cs
index 19521473e05..ce32cb0dba6 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/SymmetricSecurityBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/SymmetricSecurityBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/TcpTransportBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/TcpTransportBindingElementTest.cs
index 905bbcd937b..2413c00fc41 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/TcpTransportBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/TcpTransportBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.IO;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/TextMessageEncodingBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/TextMessageEncodingBindingElementTest.cs
index ed7710cfc84..1bdddb321e8 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/TextMessageEncodingBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/TextMessageEncodingBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.IO;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/TransactionFlowBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/TransactionFlowBindingElementTest.cs
index cc7a3e50a76..d567b568ecb 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/TransactionFlowBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Channels/TransactionFlowBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.Net;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/AddressHeaderCollectionElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/AddressHeaderCollectionElementTest.cs
index 74176fe855c..122fafed411 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/AddressHeaderCollectionElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/AddressHeaderCollectionElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/BasicHttpBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/BasicHttpBindingElementTest.cs
index 77309c4c443..e7573e345fe 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/BasicHttpBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/BasicHttpBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/BehaviorsSectionTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/BehaviorsSectionTest.cs
index f2cb4ae8f65..aa79496c9c3 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/BehaviorsSectionTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/BehaviorsSectionTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/BindingsSectionTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/BindingsSectionTest.cs
index dd32cc0fa17..93118ecfa04 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/BindingsSectionTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/BindingsSectionTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ChannelEndpointElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ChannelEndpointElementTest.cs
index b83b909ec1b..07c1487f56a 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ChannelEndpointElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ChannelEndpointElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/CustomBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/CustomBindingElementTest.cs
index 62cda435786..cc531afd3fc 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/CustomBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/CustomBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/EndpointBehaviorElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/EndpointBehaviorElementTest.cs
index 1d0ac116879..5055ee589c5 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/EndpointBehaviorElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/EndpointBehaviorElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ExtensionsSectionTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ExtensionsSectionTest.cs
index 9f7d31c29dc..7d968dc714b 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ExtensionsSectionTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ExtensionsSectionTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/MetadataElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/MetadataElementTest.cs
index 841ff2ae4e6..818dfb1aa64 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/MetadataElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/MetadataElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/MexBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/MexBindingElementTest.cs
index 3c4d5574bfd..eea15f26d9c 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/MexBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/MexBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetNamedPipeBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetNamedPipeBindingElementTest.cs
index 5af32aa4b71..9710ed953b5 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetNamedPipeBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetNamedPipeBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetPeerTcpBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetPeerTcpBindingElementTest.cs
index 706c6b45537..5273c9ed3cc 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetPeerTcpBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetPeerTcpBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetTcpBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetTcpBindingElementTest.cs
index 52b5a5ba34c..271aee54c09 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetTcpBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetTcpBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceBehaviorElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceBehaviorElementTest.cs
index 93fbbf29b03..2b8be0ebfdb 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceBehaviorElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceBehaviorElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceElementTest.cs
index 36579ca7d72..096401772f6 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceModelConfigurationElementCollectionTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceModelConfigurationElementCollectionTest.cs
index d86ffafa06c..4bd0ba2787a 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceModelConfigurationElementCollectionTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceModelConfigurationElementCollectionTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceModelSectionGroupTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceModelSectionGroupTest.cs
index a59cf35fe0c..ee0bab450d5 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceModelSectionGroupTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceModelSectionGroupTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Configuration;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardBindingCollectionElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardBindingCollectionElementTest.cs
index 30553a5afcb..db28880b712 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardBindingCollectionElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardBindingCollectionElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardBindingElementCollectionTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardBindingElementCollectionTest.cs
index eadad2c318f..66296f9c1cc 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardBindingElementCollectionTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardBindingElementCollectionTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using NUnit.Framework;
using System;
using System.Configuration;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardBindingElementTest.cs
index 178b3edaa66..0a954a80035 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardEndpointsSectionTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardEndpointsSectionTest.cs
index 922bdb738b6..dc3a507c58b 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardEndpointsSectionTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardEndpointsSectionTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Configuration;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/UserBinding.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/UserBinding.cs
index 89aef00c0bd..9499c29385f 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/UserBinding.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Configuration/UserBinding.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ContractDescriptionTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ContractDescriptionTest.cs
index 91e23194418..72011cf2c2c 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ContractDescriptionTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ContractDescriptionTest.cs
@@ -26,7 +26,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.Linq;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/MetadataExchangeBindingsTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/MetadataExchangeBindingsTest.cs
index b0534e2bf7b..b5d29b5b6e8 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/MetadataExchangeBindingsTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/MetadataExchangeBindingsTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Linq;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/MetadataResolverTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/MetadataResolverTest.cs
index 93e1adecda8..4e9f9112bc2 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/MetadataResolverTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/MetadataResolverTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.IO;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceAuthorizationBehaviorTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceAuthorizationBehaviorTest.cs
index 9d2497bb115..093b9208223 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceAuthorizationBehaviorTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceAuthorizationBehaviorTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.ServiceModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceContractGeneratorTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceContractGeneratorTest.cs
index 3499737e6c2..5bdb6b3cff9 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceContractGeneratorTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceContractGeneratorTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.CodeDom;
using System.Collections;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceCredentialsTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceCredentialsTest.cs
index efae8eb5f76..31591e81690 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceCredentialsTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceCredentialsTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.IdentityModel.Claims;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceDebugBehaviorTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceDebugBehaviorTest.cs
index 6857d5956ef..a849269ee0c 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceDebugBehaviorTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceDebugBehaviorTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Net.Sockets;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceMetadataBehaviorTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceMetadataBehaviorTest.cs
index 98c02250581..1251fc6fb6b 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceMetadataBehaviorTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceMetadataBehaviorTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceMetadataEndpointTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceMetadataEndpointTest.cs
index 67eacddd5f4..5faf882896e 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceMetadataEndpointTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceMetadataEndpointTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceThrottlingBehaviorTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceThrottlingBehaviorTest.cs
index bf4b6acea5f..010943e15ed 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceThrottlingBehaviorTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/ServiceThrottlingBehaviorTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/TypedMessageConverterTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/TypedMessageConverterTest.cs
index 8dcf3bd6a2b..c77ba5e62a1 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/TypedMessageConverterTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/TypedMessageConverterTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.IO;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/WsdlExporterTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/WsdlExporterTest.cs
index 59de3d34ac8..f3a804685d0 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/WsdlExporterTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/WsdlExporterTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/WsdlImporterTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/WsdlImporterTest.cs
index 825909b5bf2..875d5f8a1d4 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/WsdlImporterTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Description/WsdlImporterTest.cs
@@ -26,7 +26,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug32886Test.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug32886Test.cs
index 353f50e8be3..620570a489b 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug32886Test.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug32886Test.cs
@@ -21,7 +21,7 @@
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Globalization;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug652331Test.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug652331Test.cs
index c2c63b88b00..6af11f07355 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug652331Test.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug652331Test.cs
@@ -24,7 +24,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Linq;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug652331_2Test.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug652331_2Test.cs
index dbf94ca392d..a7c270d61c2 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug652331_2Test.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/Bug652331_2Test.cs
@@ -24,7 +24,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/ChannelDispatcherTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/ChannelDispatcherTest.cs
index 14510dc5925..b167728e1be 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/ChannelDispatcherTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/ChannelDispatcherTest.cs
@@ -1,4 +1,4 @@
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Linq;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/DispatchOperationTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/DispatchOperationTest.cs
index 1fc3a22e681..33710b89c0b 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/DispatchOperationTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/DispatchOperationTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/DispatchRuntimeTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/DispatchRuntimeTest.cs
index ac628914e34..0219dae879b 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/DispatchRuntimeTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/DispatchRuntimeTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/EndpointAddressMessageFilterTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/EndpointAddressMessageFilterTest.cs
index cb083d2668f..f46a195304a 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/EndpointAddressMessageFilterTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/EndpointAddressMessageFilterTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/EndpointDispatcherTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/EndpointDispatcherTest.cs
index f84723391ed..b4f8d9a973b 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/EndpointDispatcherTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/EndpointDispatcherTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/ExceptionHandlerTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/ExceptionHandlerTest.cs
index 0918027fa48..ea4f636d91b 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/ExceptionHandlerTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/ExceptionHandlerTest.cs
@@ -24,7 +24,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Reflection;
using System.Runtime.ConstrainedExecution;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/InvalidBodyAccessExceptionTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/InvalidBodyAccessExceptionTest.cs
index 6d702d867d2..bedac6a5ffd 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/InvalidBodyAccessExceptionTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/InvalidBodyAccessExceptionTest.cs
@@ -1,4 +1,4 @@
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/PrefixEndpointAddressMessageFilterTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/PrefixEndpointAddressMessageFilterTest.cs
index 36836430fc5..882a716f4b0 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/PrefixEndpointAddressMessageFilterTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/PrefixEndpointAddressMessageFilterTest.cs
@@ -26,7 +26,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/XPathMessageContextTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/XPathMessageContextTest.cs
index c68759d1cf3..555cafa2f10 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/XPathMessageContextTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Dispatcher/XPathMessageContextTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.PeerResolvers/CustomPeerResolverServiceTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.PeerResolvers/CustomPeerResolverServiceTest.cs
index 57430cd0859..88ebba1620e 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.PeerResolvers/CustomPeerResolverServiceTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.PeerResolvers/CustomPeerResolverServiceTest.cs
@@ -6,7 +6,7 @@
//
// Copyright 2007 Marcos Cobena (http://www.youcannoteatbits.org/)
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.ServiceModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.PeerResolvers/PeerResolverSerializationTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.PeerResolvers/PeerResolverSerializationTest.cs
index 62ae8fb46a3..d3fe527f548 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.PeerResolvers/PeerResolverSerializationTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.PeerResolvers/PeerResolverSerializationTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/IssuedSecurityTokenParametersTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/IssuedSecurityTokenParametersTest.cs
index f5e7e088278..2de865f0a66 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/IssuedSecurityTokenParametersTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/IssuedSecurityTokenParametersTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/IssuedSecurityTokenProviderTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/IssuedSecurityTokenProviderTest.cs
index 2e2a867c5d5..55072eac964 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/IssuedSecurityTokenProviderTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/IssuedSecurityTokenProviderTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Globalization;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/RsaSecurityTokenParametersTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/RsaSecurityTokenParametersTest.cs
index 4c02c57d359..08268b4bec3 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/RsaSecurityTokenParametersTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/RsaSecurityTokenParametersTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/SecureConversationSecurityTokenParametersTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/SecureConversationSecurityTokenParametersTest.cs
index 1a61da1f874..39b81ca1ff7 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/SecureConversationSecurityTokenParametersTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/SecureConversationSecurityTokenParametersTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/SecurityTokenParametersTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/SecurityTokenParametersTest.cs
index 8b33441f5cc..a2216b09e68 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/SecurityTokenParametersTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/SecurityTokenParametersTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/ServiceModelSecurityTokenTypesTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/ServiceModelSecurityTokenTypesTest.cs
index 77867c3eaa1..e8775ef28b4 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/ServiceModelSecurityTokenTypesTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/ServiceModelSecurityTokenTypesTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/SslSecurityTokenParametersTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/SslSecurityTokenParametersTest.cs
index 851d5a85846..f68ada94cc9 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/SslSecurityTokenParametersTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/SslSecurityTokenParametersTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/SspiSecurityTokenParametersTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/SspiSecurityTokenParametersTest.cs
index 7ec953da71a..635104cfd49 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/SspiSecurityTokenParametersTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/SspiSecurityTokenParametersTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/UserNameSecurityTokenParametersTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/UserNameSecurityTokenParametersTest.cs
index fb6bab4df92..f46da3cf58c 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/UserNameSecurityTokenParametersTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/UserNameSecurityTokenParametersTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/X509SecurityTokenParametersTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/X509SecurityTokenParametersTest.cs
index 7a5851ab5d8..b926e392687 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/X509SecurityTokenParametersTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security.Tokens/X509SecurityTokenParametersTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security/SecurityMessagePropertyTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security/SecurityMessagePropertyTest.cs
index ae163280ac0..c5ccb23ed49 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security/SecurityMessagePropertyTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security/SecurityMessagePropertyTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.Net;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security/ServiceCredentialsSecurityTokenManagerTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security/ServiceCredentialsSecurityTokenManagerTest.cs
index 32913991a0b..e1713573194 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security/ServiceCredentialsSecurityTokenManagerTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security/ServiceCredentialsSecurityTokenManagerTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.IdentityModel.Selectors;
using System.IdentityModel.Tokens;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security/TransportSecurityBindingElementTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security/TransportSecurityBindingElementTest.cs
index dc553008603..b27b97be5cd 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security/TransportSecurityBindingElementTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security/TransportSecurityBindingElementTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.Net;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security/WSSecurityTokenSerializerTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security/WSSecurityTokenSerializerTest.cs
index 6031692480d..babc52155ea 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security/WSSecurityTokenSerializerTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel.Security/WSSecurityTokenSerializerTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.IO;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel/BasicHttpBindingTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel/BasicHttpBindingTest.cs
index bf1f7ef0fec..c6c787ed6b9 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel/BasicHttpBindingTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel/BasicHttpBindingTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.Net;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel/Bug36080Test.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel/Bug36080Test.cs
index 2727915843f..1ebd699dea6 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel/Bug36080Test.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel/Bug36080Test.cs
@@ -53,7 +53,7 @@ namespace MonoTests.System.ServiceModel
element
});
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
// Init service
ServiceHost serviceHost = new ServiceHost (typeof (HelloWorldServiceImpl), new Uri (url));
serviceHost.AddServiceEndpoint (typeof (IHelloWorldService), binding, string.Empty);
@@ -82,7 +82,7 @@ namespace MonoTests.System.ServiceModel
client.SayHelloToAsync(str);
Assert.IsTrue (wait.WaitOne (TimeSpan.FromSeconds (20)), "timeout");
-#if MOBILE
+#if MOBILE || XAMMAC_4_5
if (error.GetType() == typeof(EndpointNotFoundException))
return;
#endif
@@ -90,7 +90,7 @@ namespace MonoTests.System.ServiceModel
Assert.IsNull (error, "#1, inner exception: {0}", error);
Assert.AreEqual (str, result, "#2");
} finally {
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
serviceHost.Close ();
#endif
}
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel/CallbackBehaviorAttributeTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel/CallbackBehaviorAttributeTest.cs
index faebf1a0002..4c880b73a2b 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel/CallbackBehaviorAttributeTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel/CallbackBehaviorAttributeTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.IO;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel/ChannelFactoryTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel/ChannelFactoryTest.cs
index bd15cb2f9ac..975a7c60064 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel/ChannelFactoryTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel/ChannelFactoryTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.ServiceModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel/ChannelFactory_1Test.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel/ChannelFactory_1Test.cs
index 2d36f4d09a1..ec12007b8a0 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel/ChannelFactory_1Test.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel/ChannelFactory_1Test.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel/ClientBaseTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel/ClientBaseTest.cs
index 08b01c7a9e2..4a2d2a1b019 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel/ClientBaseTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel/ClientBaseTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.IO;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel/ClientCredentialsSecurityTokenManagerTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel/ClientCredentialsSecurityTokenManagerTest.cs
index 540f0db6940..51a06265fec 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel/ClientCredentialsSecurityTokenManagerTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel/ClientCredentialsSecurityTokenManagerTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.IdentityModel.Selectors;
using System.IdentityModel.Tokens;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel/IntegratedConnectionTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel/IntegratedConnectionTest.cs
index 256a6fa54cd..3f415e71284 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel/IntegratedConnectionTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel/IntegratedConnectionTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.IO;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel/MessageSecurityVersionTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel/MessageSecurityVersionTest.cs
index 735025ae405..e14d3607831 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel/MessageSecurityVersionTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel/MessageSecurityVersionTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.ServiceModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel/MsmqTransportSecurityTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel/MsmqTransportSecurityTest.cs
index d2e3f90f904..c579319a520 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel/MsmqTransportSecurityTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel/MsmqTransportSecurityTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Net.Security;
using System.ServiceModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel/NetMsmqBindingTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel/NetMsmqBindingTest.cs
index 90a82d6963a..b700a7b5d53 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel/NetMsmqBindingTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel/NetMsmqBindingTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.Net.Security;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel/NetPeerTcpBindingTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel/NetPeerTcpBindingTest.cs
index 8f731a9b194..b790923d98a 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel/NetPeerTcpBindingTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel/NetPeerTcpBindingTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.Net.Security;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel/NetTcpBindingTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel/NetTcpBindingTest.cs
index 7fcb6976708..bc440a665f7 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel/NetTcpBindingTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel/NetTcpBindingTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.Net.Sockets;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel/OperationContextTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel/OperationContextTest.cs
index d8dbef4639b..1aca0f87953 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel/OperationContextTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel/OperationContextTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.IO;
using System.IdentityModel.Claims;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel/PeerNodeAddressTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel/PeerNodeAddressTest.cs
index da8c3a0b758..f7effaad118 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel/PeerNodeAddressTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel/PeerNodeAddressTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.IO;
using System.Runtime.Serialization;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel/ServiceHostBaseTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel/ServiceHostBaseTest.cs
index 03d4ee51857..5f5930940d0 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel/ServiceHostBaseTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel/ServiceHostBaseTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel/ServiceHostTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel/ServiceHostTest.cs
index 1b9efe94c51..5e6b9215b05 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel/ServiceHostTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel/ServiceHostTest.cs
@@ -26,7 +26,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.Generic;
using System.ServiceModel;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel/TransactionProtocolTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel/TransactionProtocolTest.cs
index 7abd873de02..673cc4547ea 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel/TransactionProtocolTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel/TransactionProtocolTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.Net;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel/WSFederationHttpBindingTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel/WSFederationHttpBindingTest.cs
index 89406bd511c..c68a657d564 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel/WSFederationHttpBindingTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel/WSFederationHttpBindingTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.IdentityModel.Tokens;
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel/WSHttpBindingTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel/WSHttpBindingTest.cs
index 34b28fe919a..4c3b08c1929 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel/WSHttpBindingTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel/WSHttpBindingTest.cs
@@ -25,7 +25,7 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !MOBILE
+#if !MOBILE && !XAMMAC_4_5
using System;
using System.Collections.ObjectModel;
using System.Net;