diff --git a/src/System.ServiceModel.Duplex/tests/System.ServiceModel.Duplex.Tests.csproj b/src/System.ServiceModel.Duplex/tests/System.ServiceModel.Duplex.Tests.csproj
index 83e0f779d84..084d16446cc 100644
--- a/src/System.ServiceModel.Duplex/tests/System.ServiceModel.Duplex.Tests.csproj
+++ b/src/System.ServiceModel.Duplex/tests/System.ServiceModel.Duplex.Tests.csproj
@@ -6,7 +6,7 @@
false
- $(NoWarn);xUnit2010
+ $(NoWarn)
diff --git a/src/System.ServiceModel.Http/tests/System.ServiceModel.Http.Tests.csproj b/src/System.ServiceModel.Http/tests/System.ServiceModel.Http.Tests.csproj
index 83e0f779d84..084d16446cc 100644
--- a/src/System.ServiceModel.Http/tests/System.ServiceModel.Http.Tests.csproj
+++ b/src/System.ServiceModel.Http/tests/System.ServiceModel.Http.Tests.csproj
@@ -6,7 +6,7 @@
false
- $(NoWarn);xUnit2010
+ $(NoWarn)
diff --git a/src/System.ServiceModel.NetTcp/tests/System.ServiceModel.NetTcp.Tests.csproj b/src/System.ServiceModel.NetTcp/tests/System.ServiceModel.NetTcp.Tests.csproj
index 83e0f779d84..084d16446cc 100644
--- a/src/System.ServiceModel.NetTcp/tests/System.ServiceModel.NetTcp.Tests.csproj
+++ b/src/System.ServiceModel.NetTcp/tests/System.ServiceModel.NetTcp.Tests.csproj
@@ -6,7 +6,7 @@
false
- $(NoWarn);xUnit2010
+ $(NoWarn)
diff --git a/src/System.ServiceModel.Primitives/tests/Description/ContractDescriptionTest.cs b/src/System.ServiceModel.Primitives/tests/Description/ContractDescriptionTest.cs
index a1964c90a07..dddb3b085d1 100644
--- a/src/System.ServiceModel.Primitives/tests/Description/ContractDescriptionTest.cs
+++ b/src/System.ServiceModel.Primitives/tests/Description/ContractDescriptionTest.cs
@@ -198,7 +198,7 @@ public static void ContractDescription_GetContract()
{
// Simple validation of the newly exposed "public ContractDescription GetContract(Type contractType);" method
ContractDescription contractDescription = ContractDescription.GetContract(typeof(IDescriptionTestsService));
- Assert.True(String.Equals(typeof(IDescriptionTestsService).Name, contractDescription.ContractType.Name));
- Assert.True(String.Equals("http://tempuri.org/", contractDescription.Namespace));
+ Assert.Equal(typeof(IDescriptionTestsService).Name, contractDescription.ContractType.Name);
+ Assert.Equal("http://tempuri.org/", contractDescription.Namespace);
}
}
diff --git a/src/System.ServiceModel.Primitives/tests/Description/OperationBehaviorTest.cs b/src/System.ServiceModel.Primitives/tests/Description/OperationBehaviorTest.cs
index b88b78b1476..e355fc4a380 100644
--- a/src/System.ServiceModel.Primitives/tests/Description/OperationBehaviorTest.cs
+++ b/src/System.ServiceModel.Primitives/tests/Description/OperationBehaviorTest.cs
@@ -81,11 +81,11 @@ public static void XmlSerializerOperationBehavior_BasicUsage()
if (String.Equals(description.Name, nameof(IXmlTestingType.XmlSerializerFormatAttribute_Set_StyleSetTo_Rpc)) || (String.Equals(description.Name, nameof(IXmlTestingType.XmlSerializerFormatAttribute_NotSet_Two))))
{
- Assert.True(String.Equals(serializerBehavior.XmlSerializerFormatAttribute.Style.ToString(), "Rpc"));
+ Assert.Equal("Rpc", serializerBehavior.XmlSerializerFormatAttribute.Style.ToString());
}
else
{
- Assert.True(String.Equals(serializerBehavior.XmlSerializerFormatAttribute.Style.ToString(), "Document"));
+ Assert.Equal("Document", serializerBehavior.XmlSerializerFormatAttribute.Style.ToString());
}
}
}
diff --git a/src/System.ServiceModel.Primitives/tests/Security/SecurityNegotiationExceptionTest.cs b/src/System.ServiceModel.Primitives/tests/Security/SecurityNegotiationExceptionTest.cs
index 16b62361efa..4aef0ab2d4a 100644
--- a/src/System.ServiceModel.Primitives/tests/Security/SecurityNegotiationExceptionTest.cs
+++ b/src/System.ServiceModel.Primitives/tests/Security/SecurityNegotiationExceptionTest.cs
@@ -21,9 +21,9 @@ public static void ValidateConstructors()
SecurityNegotiationException exception1 = new SecurityNegotiationException();
SecurityNegotiationException exception2 = new SecurityNegotiationException(exceptionMessage);
- Assert.True(String.Equals(exceptionMessage, exception2.Message));
+ Assert.Equal(exceptionMessage, exception2.Message);
SecurityNegotiationException exception3 = new SecurityNegotiationException(exceptionMessage, innerException);
- Assert.True(String.Equals(exceptionMessage, exception3.InnerException.Message));
+ Assert.Equal(exceptionMessage, exception3.InnerException.Message);
}
}
diff --git a/src/System.ServiceModel.Primitives/tests/System.ServiceModel.Primitives.Tests.csproj b/src/System.ServiceModel.Primitives/tests/System.ServiceModel.Primitives.Tests.csproj
index 7e1f4259646..df77e976bff 100644
--- a/src/System.ServiceModel.Primitives/tests/System.ServiceModel.Primitives.Tests.csproj
+++ b/src/System.ServiceModel.Primitives/tests/System.ServiceModel.Primitives.Tests.csproj
@@ -7,7 +7,7 @@
false
- $(NoWarn);xUnit2010
+ $(NoWarn)
diff --git a/src/System.ServiceModel.Security/tests/System.ServiceModel.Security.Tests.csproj b/src/System.ServiceModel.Security/tests/System.ServiceModel.Security.Tests.csproj
index 83e0f779d84..084d16446cc 100644
--- a/src/System.ServiceModel.Security/tests/System.ServiceModel.Security.Tests.csproj
+++ b/src/System.ServiceModel.Security/tests/System.ServiceModel.Security.Tests.csproj
@@ -6,7 +6,7 @@
false
- $(NoWarn);xUnit2010
+ $(NoWarn)