From e0257cd61fd84a2043736b3cc2f0096207523830 Mon Sep 17 00:00:00 2001 From: Trofimov Ivan Andreevich Date: Thu, 16 Aug 2018 22:52:24 +0300 Subject: [PATCH] review fixes --- .../CorsMessageHandlerTest.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/System.Web.Http.Cors.Test/CorsMessageHandlerTest.cs b/test/System.Web.Http.Cors.Test/CorsMessageHandlerTest.cs index 842a809d..c6ecfdf2 100644 --- a/test/System.Web.Http.Cors.Test/CorsMessageHandlerTest.cs +++ b/test/System.Web.Http.Cors.Test/CorsMessageHandlerTest.cs @@ -15,14 +15,6 @@ namespace System.Web.Http.Cors { public class CorsMessageHandlerTest { - private class PassthroughExceptionHandler : IExceptionHandler - { - public Task HandleAsync(ExceptionHandlerContext context, CancellationToken cancellationToken) - { - throw context.Exception; - } - } - [Fact] public void Constructor_NullConfig_Throws() { @@ -281,5 +273,13 @@ namespace System.Web.Http.Cors () => corsHandler.HandleCorsPreflightRequestAsync(new HttpRequestMessage(), null, CancellationToken.None), "corsRequestContext"); } + + private class PassthroughExceptionHandler : IExceptionHandler + { + public Task HandleAsync(ExceptionHandlerContext context, CancellationToken cancellationToken) + { + throw context.Exception; + } + } } } \ No newline at end of file