Skip to content

Commit

Permalink
Merge pull request #4065 from imcarolwang/fix_xUnitWarning_2010
Browse files Browse the repository at this point in the history
Fix xUnit warning #2010 in test projects.
  • Loading branch information
StephenBonikowsky authored Dec 3, 2019
2 parents cc66398 + 7264230 commit 8e47e8f
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<IsPackable>false</IsPackable>
<!--[todo:arcade] Re-enable these warnings and fix them.-->
<!-- https://xunit.github.io/xunit.analyzers/rules/ -->
<NoWarn>$(NoWarn);xUnit2010</NoWarn>
<NoWarn>$(NoWarn)</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<IsPackable>false</IsPackable>
<!--[todo:arcade] Re-enable these warnings and fix them.-->
<!-- https://xunit.github.io/xunit.analyzers/rules/ -->
<NoWarn>$(NoWarn);xUnit2010</NoWarn>
<NoWarn>$(NoWarn)</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<IsPackable>false</IsPackable>
<!--[todo:arcade] Re-enable these warnings and fix them.-->
<!-- https://xunit.github.io/xunit.analyzers/rules/ -->
<NoWarn>$(NoWarn);xUnit2010</NoWarn>
<NoWarn>$(NoWarn)</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<IsPackable>false</IsPackable>
<!--[todo:arcade] Re-enable these warnings and fix them.-->
<!-- https://xunit.github.io/xunit.analyzers/rules/ -->
<NoWarn>$(NoWarn);xUnit2010</NoWarn>
<NoWarn>$(NoWarn)</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<IsPackable>false</IsPackable>
<!--[todo:arcade] Re-enable these warnings and fix them.-->
<!-- https://xunit.github.io/xunit.analyzers/rules/ -->
<NoWarn>$(NoWarn);xUnit2010</NoWarn>
<NoWarn>$(NoWarn)</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 8e47e8f

Please sign in to comment.