AspNetWebStack/test/System.Web.Http.Test
Doug Bunting 979e6ac663
Add `Content` to all `HttpResponseMessage`s (#387)
- fix #386
  - reenable `net6.0` tests disabled in #384 for this issue
- also, check `Stream.CanSeek` less when calculating `HttpMessageContent.ContentLength` value
  - use inner `HttpContent.Headers.ContentLength` if available
  - this changes behaviour slightly for both requests and responses
    - observable as `HttpMessageContent.Headers.ContentLength!=null` for empty messages
  - for responses, avoids `ContentLength==null` versus `ContentLength==0` inconsistencies (depending on platform)
  - `ContentLength==null` may still occur in some corner cases (which existed before)
    - e.g. when inner `HttpContent` doesn't know its length and `ReadAsStreamAsync()` hasn't completed
- main change means `HttpResponseMessage`s we expose to user code are consistent across platforms
  - note: user code won't see `EmptyContent` in `HttpResponseMessage`s we create
2023-02-17 12:14:39 -08:00
..
Batch Changes following review 2018-07-25 16:24:07 +01:00
Common Change source code and repo license info to .NET Foundation 2016-08-08 22:03:40 -07:00
Controllers Add `Content` to all `HttpResponseMessage`s (#387) 2023-02-17 12:14:39 -08:00
Description Add xUnit analyzers and take xUnit fixer suggestions (3 of 5): System.Web.Http.Test 2017-10-25 15:26:08 -07:00
Dispatcher Bump test project dependencies (#383) 2023-01-30 20:52:17 -08:00
ExceptionHandling Add xUnit analyzers and take xUnit fixer suggestions (3 of 5): System.Web.Http.Test 2017-10-25 15:26:08 -07:00
Filters Add xUnit analyzers and take xUnit fixer suggestions (3 of 5): System.Web.Http.Test 2017-10-25 15:26:08 -07:00
Hosting Restore `HttpRequestContext.Principal` after executing inner message handlers 2018-02-21 08:51:00 -08:00
Internal Add xUnit analyzers and take xUnit fixer suggestions (3 of 5): System.Web.Http.Test 2017-10-25 15:26:08 -07:00
Metadata Add xUnit analyzers and take xUnit fixer suggestions (3 of 5): System.Web.Http.Test 2017-10-25 15:26:08 -07:00
ModelBinding Add xUnit analyzers and take xUnit fixer suggestions (3 of 5): System.Web.Http.Test 2017-10-25 15:26:08 -07:00
Properties Change source code and repo license info to .NET Foundation 2016-08-08 22:03:40 -07:00
Results Add xUnit analyzers and take xUnit fixer suggestions (3 of 5): System.Web.Http.Test 2017-10-25 15:26:08 -07:00
Routing Bump test project dependencies (#383) 2023-01-30 20:52:17 -08:00
Services Add xUnit analyzers and take xUnit fixer suggestions (3 of 5): System.Web.Http.Test 2017-10-25 15:26:08 -07:00
Tracing Bump Newtonsoft.Json to 13.0.1 (#369) 2022-11-23 17:55:12 -08:00
Util Change source code and repo license info to .NET Foundation 2016-08-08 22:03:40 -07:00
Validation Give `ValidationContext.MemberName` a distinct value from `DisplayName` 2018-02-01 16:39:52 -08:00
ValueProviders Add xUnit analyzers and take xUnit fixer suggestions (3 of 5): System.Web.Http.Test 2017-10-25 15:26:08 -07:00
AuthorizeAttributeTest.cs Change source code and repo license info to .NET Foundation 2016-08-08 22:03:40 -07:00
HttpConfigurationExtensionsTest.cs Add xUnit analyzers and take xUnit fixer suggestions (3 of 5): System.Web.Http.Test 2017-10-25 15:26:08 -07:00
HttpErrorKeysTest.cs Add xUnit analyzers and take xUnit fixer suggestions (3 of 5): System.Web.Http.Test 2017-10-25 15:26:08 -07:00
HttpMessageHandlerExtensions.cs Change source code and repo license info to .NET Foundation 2016-08-08 22:03:40 -07:00
HttpRequestMessageExtensionsTest.cs Add xUnit analyzers and take xUnit fixer suggestions (3 of 5): System.Web.Http.Test 2017-10-25 15:26:08 -07:00
HttpResponseExceptionTest.cs Change source code and repo license info to .NET Foundation 2016-08-08 22:03:40 -07:00
HttpResponseMessageExtensionsTest.cs Change source code and repo license info to .NET Foundation 2016-08-08 22:03:40 -07:00
HttpRouteCollectionExtensionsTest.cs Add xUnit analyzers and take xUnit fixer suggestions (3 of 5): System.Web.Http.Test 2017-10-25 15:26:08 -07:00
HttpRouteCollectionTest.cs Upgrade to Moq v4.7.142 and Castle.Core v4.2.1 2017-10-24 19:06:05 -07:00
HttpServerTest.cs Add xUnit analyzers and take xUnit fixer suggestions (3 of 5): System.Web.Http.Test 2017-10-25 15:26:08 -07:00
Resources.Designer.cs Fix CodePlex 744 2013-09-19 14:30:18 -07:00
Resources.resx Fix CodePlex 744 2013-09-19 14:30:18 -07:00
System.Web.Http.Test.csproj Bump test project dependencies (#383) 2023-01-30 20:52:17 -08:00
packages.config Bump test project dependencies (#383) 2023-01-30 20:52:17 -08:00