Skip to content

Commit e0257cd

Browse files
author
Trofimov Ivan Andreevich
committed
review fixes
1 parent 08a202b commit e0257cd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/System.Web.Http.Cors.Test/CorsMessageHandlerTest.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ namespace System.Web.Http.Cors
1515
{
1616
public class CorsMessageHandlerTest
1717
{
18-
private class PassthroughExceptionHandler : IExceptionHandler
19-
{
20-
public Task HandleAsync(ExceptionHandlerContext context, CancellationToken cancellationToken)
21-
{
22-
throw context.Exception;
23-
}
24-
}
25-
2618
[Fact]
2719
public void Constructor_NullConfig_Throws()
2820
{
@@ -281,5 +273,13 @@ public Task HandleCorsPreflightRequestAsync_NullContext_Throws()
281273
() => corsHandler.HandleCorsPreflightRequestAsync(new HttpRequestMessage(), null, CancellationToken.None),
282274
"corsRequestContext");
283275
}
276+
277+
private class PassthroughExceptionHandler : IExceptionHandler
278+
{
279+
public Task HandleAsync(ExceptionHandlerContext context, CancellationToken cancellationToken)
280+
{
281+
throw context.Exception;
282+
}
283+
}
284284
}
285285
}

0 commit comments

Comments
 (0)