@@ -7,13 +7,28 @@ namespace UnitTests.Internal;
7
7
8
8
public sealed class ErrorObjectTests
9
9
{
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
11
12
[ 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 ) ]
17
32
public void ErrorDocument_GetErrorStatusCode_IsCorrect ( HttpStatusCode [ ] errorCodes , HttpStatusCode expected )
18
33
{
19
34
// Arrange
0 commit comments