@@ -7,28 +7,15 @@ namespace UnitTests.Internal;
77
88public sealed class ErrorObjectTests
99{
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
10+ // @formatter:wrap_array_initializer_style wrap_if_long
11+ // @formatter:max_array_initializer_elements_on_line 10
1212 [ Theory ]
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 ) ]
13+ [ InlineData ( new [ ] { HttpStatusCode . UnprocessableEntity } , HttpStatusCode . UnprocessableEntity ) ]
14+ [ InlineData ( new [ ] { HttpStatusCode . UnprocessableEntity , HttpStatusCode . UnprocessableEntity } , HttpStatusCode . UnprocessableEntity ) ]
15+ [ InlineData ( new [ ] { HttpStatusCode . UnprocessableEntity , HttpStatusCode . Unauthorized } , HttpStatusCode . BadRequest ) ]
16+ [ InlineData ( new [ ] { HttpStatusCode . UnprocessableEntity , HttpStatusCode . BadGateway } , HttpStatusCode . InternalServerError ) ]
17+ // @formatter:max_array_initializer_elements_on_line restore
18+ // @formatter:wrap_array_initializer_style restore
3219 public void ErrorDocument_GetErrorStatusCode_IsCorrect ( HttpStatusCode [ ] errorCodes , HttpStatusCode expected )
3320 {
3421 // Arrange
0 commit comments