Skip to content

Commit

Permalink
Suppressed excessive warnings in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Klaus committed Dec 31, 2023
1 parent a880ea3 commit eb7b9a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/DomainResults.Tests/Mvc/ActionResultConventionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace DomainResults.Tests.Mvc;

[SuppressMessage("ReSharper", "InconsistentNaming")]
[SuppressMessage("Usage", "xUnit1031:Do not use blocking task operations in test method")]
[Collection("Sequential")]
public class ActionResult_Conventions_Tests
{
Expand Down Expand Up @@ -48,7 +49,7 @@ public void FailedHttpCode_Is_Honoured_in_Failed_Response_Test(int? failedHttpCo
[Theory]
[InlineData(null, "Bad Request")]
[InlineData("1", "1")]
public void FailedProblemDetailsTitle_Is_Honoured_in_Error_Response_Test(string failedTitle, string expectedFailedTitle)
public void FailedProblemDetailsTitle_Is_Honoured_in_Error_Response_Test(string? failedTitle, string expectedFailedTitle)
{
var defaultValue = HttpCodeConvention.FailedProblemDetailsTitle;

Expand Down Expand Up @@ -112,7 +113,7 @@ public void NotFoundHttpCode_Is_Honoured_in_NotFound_Response_Test(int? notFound
[Theory]
[InlineData(null, "Not Found")]
[InlineData("1", "1")]
public void NotFoundHttpDetailsTitle_Is_Honoured_in_NotFound_Response_Test(string notFoundTitle, string expectedNotFoundTitle)
public void NotFoundHttpDetailsTitle_Is_Honoured_in_NotFound_Response_Test(string? notFoundTitle, string expectedNotFoundTitle)
{
var defaultValue = HttpCodeConvention.NotFoundProblemDetailsTitle;

Expand Down
1 change: 1 addition & 0 deletions tests/DomainResults.Tests/Mvc/To4xxActionResultTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace DomainResults.Tests.Mvc;

[SuppressMessage("ReSharper", "InconsistentNaming")]
[SuppressMessage("Usage", "xUnit1031:Do not use blocking task operations in test method")]
[Collection("Sequential")]
public class To_4xx_ActionResult_Tests
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace DomainResults.Tests.Mvc;

[SuppressMessage("ReSharper", "InconsistentNaming")]
[SuppressMessage("Usage", "xUnit1031:Do not use blocking task operations in test method")]
public class To_Custom_ActionResult_Success_Tests
{
[Theory]
Expand Down

0 comments on commit eb7b9a5

Please sign in to comment.