From e5f910f5ffd8aae365f485b17f3b7d372c4ccc98 Mon Sep 17 00:00:00 2001 From: Marcin Jahn <10273406+marcinjahn@users.noreply.github.com> Date: Mon, 9 Dec 2024 18:17:31 +0100 Subject: [PATCH] Add test to make sure request is still valid --- tests/http/httpClient/Middleware/BodyInspectionHandlerTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/http/httpClient/Middleware/BodyInspectionHandlerTests.cs b/tests/http/httpClient/Middleware/BodyInspectionHandlerTests.cs index a4eba43..6341d1b 100644 --- a/tests/http/httpClient/Middleware/BodyInspectionHandlerTests.cs +++ b/tests/http/httpClient/Middleware/BodyInspectionHandlerTests.cs @@ -33,6 +33,7 @@ public async Task BodyInspectionHandlerGetsRequestBodyStream() // Then Assert.NotNull(option.RequestBody); Assert.Equal("request test", GetStringFromStream(option.RequestBody!)); + Assert.Equal("request test", await request.Content.ReadAsStringAsync()); // response from option is separate from "normal" request stream } [Fact]