From 0a1dd5e9910878d7847e8695d4998ce8930c998a Mon Sep 17 00:00:00 2001 From: maliming Date: Tue, 10 Nov 2020 09:26:05 +0800 Subject: [PATCH] Update NoContentTestController_Tests.cs --- .../Response/NoContentTestController_Tests.cs | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/Response/NoContentTestController_Tests.cs b/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/Response/NoContentTestController_Tests.cs index dd100fb2e1..b11a185d68 100644 --- a/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/Response/NoContentTestController_Tests.cs +++ b/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/Response/NoContentTestController_Tests.cs @@ -10,56 +10,49 @@ namespace Volo.Abp.AspNetCore.Mvc.Response [Fact] public async Task Should_Set_No_Content_For_Void_Action() { - var result = await GetResponseAsync("/api/NoContent-Test/TestMethod", HttpStatusCode.NoContent) - ; + var result = await GetResponseAsync("/api/NoContent-Test/TestMethod", HttpStatusCode.NoContent); result.StatusCode.ShouldBe(HttpStatusCode.NoContent); } [Fact] public async Task Should_Not_Set_No_Content_For_Not_Void_Action() { - var result = await GetResponseAsync("/api/NoContent-Test/TestMethodWithReturn") - ; + var result = await GetResponseAsync("/api/NoContent-Test/TestMethodWithReturn"); result.StatusCode.ShouldBe(HttpStatusCode.OK); } [Fact] public async Task Should_Not_Set_No_Content_For_Custom_Http_Status_Code_Action() { - var result = await GetResponseAsync("/api/NoContent-Test/TestCustomHttpStatusCodeMethod", HttpStatusCode.Redirect) - ; + var result = await GetResponseAsync("/api/NoContent-Test/TestCustomHttpStatusCodeMethod", HttpStatusCode.Redirect); result.StatusCode.ShouldBe(HttpStatusCode.Redirect); } [Fact] public async Task Should_Set_No_Content_For_Task_Action() { - var result = await GetResponseAsync("/api/NoContent-Test/TestAsyncMethod", HttpStatusCode.NoContent) - ; + var result = await GetResponseAsync("/api/NoContent-Test/TestAsyncMethod", HttpStatusCode.NoContent); result.StatusCode.ShouldBe(HttpStatusCode.NoContent); } [Fact] public async Task Should_Not_Set_No_Content_For_Not_Task_Action() { - var result = await GetResponseAsync("/api/NoContent-Test/TestAsyncMethodWithReturn") - ; + var result = await GetResponseAsync("/api/NoContent-Test/TestAsyncMethodWithReturn"); result.StatusCode.ShouldBe(HttpStatusCode.OK); } [Fact] public async Task Should_Not_Set_No_Content_For_Custom_Http_Status_Code_Async_Action() { - var result = await GetResponseAsync("/api/NoContent-Test/TestAsyncCustomHttpStatusCodeMethod", HttpStatusCode.Redirect) - ; + var result = await GetResponseAsync("/api/NoContent-Test/TestAsyncCustomHttpStatusCodeMethod", HttpStatusCode.Redirect); result.StatusCode.ShouldBe(HttpStatusCode.Redirect); } [Fact] public async Task Should_Not_Set_No_Content_For_Custom_Result_Filter_Async_Action() { - var result = await GetResponseAsync("/api/NoContent-Test/TestAsyncMethodWithResultFilter") - ; + var result = await GetResponseAsync("/api/NoContent-Test/TestAsyncMethodWithResultFilter"); result.StatusCode.ShouldBe(HttpStatusCode.OK); } }