Skip to content

Commit bb56eb6

Browse files
committed
Add workaround for Resharper cleanup bug
1 parent 4096ad4 commit bb56eb6

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

test/UnitTests/Internal/ErrorObjectTests.cs

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,28 @@ namespace UnitTests.Internal;
77

88
public sealed class ErrorObjectTests
99
{
10-
// @formatter:wrap_array_initializer_style wrap_if_long
10+
// Formatting below is broken due to Resharper bug at https://youtrack.jetbrains.com/issue/RSRP-494897/Formatter-directive-broken-in-2023.3-EAP7.
11+
// This no longer works: @formatter:wrap_array_initializer_style wrap_if_long
1112
[Theory]
12-
[InlineData(new[] { HttpStatusCode.UnprocessableEntity }, HttpStatusCode.UnprocessableEntity)]
13-
[InlineData(new[] { HttpStatusCode.UnprocessableEntity, HttpStatusCode.UnprocessableEntity }, HttpStatusCode.UnprocessableEntity)]
14-
[InlineData(new[] { HttpStatusCode.UnprocessableEntity, HttpStatusCode.Unauthorized }, HttpStatusCode.BadRequest)]
15-
[InlineData(new[] { HttpStatusCode.UnprocessableEntity, HttpStatusCode.BadGateway }, HttpStatusCode.InternalServerError)]
16-
// @formatter:wrap_array_initializer_style restore
13+
[InlineData(new[]
14+
{
15+
HttpStatusCode.UnprocessableEntity
16+
}, HttpStatusCode.UnprocessableEntity)]
17+
[InlineData(new[]
18+
{
19+
HttpStatusCode.UnprocessableEntity,
20+
HttpStatusCode.UnprocessableEntity
21+
}, HttpStatusCode.UnprocessableEntity)]
22+
[InlineData(new[]
23+
{
24+
HttpStatusCode.UnprocessableEntity,
25+
HttpStatusCode.Unauthorized
26+
}, HttpStatusCode.BadRequest)]
27+
[InlineData(new[]
28+
{
29+
HttpStatusCode.UnprocessableEntity,
30+
HttpStatusCode.BadGateway
31+
}, HttpStatusCode.InternalServerError)]
1732
public void ErrorDocument_GetErrorStatusCode_IsCorrect(HttpStatusCode[] errorCodes, HttpStatusCode expected)
1833
{
1934
// Arrange

0 commit comments

Comments
 (0)