aspnetcore/test/Microsoft.AspNet.Mvc.Core.Test
Doug Bunting 03625c38af Correct polarity of MediaTypeHeaderValue.IsSubsetOf()` checks and remove one conneg fallback
- aspnet/Mvc#3138 part 2/2
- request's Content-Type header must be a subset of what an `IInputFormatter` can consume
  - `[Consumes]` is similar
- what an `IOutputFormatter` produces must be a subset of the request's Accept header
  - `FormatFilter` and `ObjectResult` are similar
- `ObjectResult` no longer falls back to `Content-Type` header if no `Accept` value is acceptable
- left `WebApiCompatShim` code alone for consistency with down-level `System.Net.Http.Formatting`
- correct tests to match new behaviour
  - do not test `Accept` values containing a `charset` parameter; that case is not valid

WIP:
- four test failures; something about comparing media types w/ charset included
- why do some localization tests fail in VS?

nits:
- add `InputFormatterTests`
- add / update comments and doc comments
- correct xUnit attributes in `ActionResultTest`; odd it doesn't show up in command-line runs
2015-10-14 11:59:20 -07:00
..
ApplicationModel Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
Controllers Suppress [Obsolete] warnings from DiagnosticSource 2015-10-08 12:47:08 -07:00
DependencyInjection Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
Filters Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
Formatters Correct polarity of MediaTypeHeaderValue.IsSubsetOf()` checks and remove one conneg fallback 2015-10-14 11:59:20 -07:00
Infrastructure Suppress [Obsolete] warnings from DiagnosticSource 2015-10-08 12:47:08 -07:00
Internal
ModelBinding Test `[FromServices]` with service that is not available 2015-10-14 11:46:11 -07:00
Properties
Routing Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
BadRequestObjectResultTests.cs Move ActionResult classes back to main namespace 2015-09-16 21:42:31 -07:00
BadRequestResultTests.cs Move ActionResult classes back to main namespace 2015-09-16 21:42:31 -07:00
BindAttributeTest.cs
ChallengeResultTest.cs API Review - Split up .Actions 2015-09-21 21:54:02 -07:00
ConsumesAttributeTests.cs Replacing NotNullAttribute with thrown exceptions 2015-10-01 06:19:18 -07:00
ContentResultTest.cs API Review - Split up .Actions 2015-09-21 21:54:02 -07:00
CreatedAtActionResultTests.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
CreatedAtRouteResultTests.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
CreatedResultTests.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
EmptyResultTests.cs API Review - Split up .Actions 2015-09-21 21:54:02 -07:00
FileContentResultTest.cs API Review - Split up .Actions 2015-09-21 21:54:02 -07:00
FileResultTest.cs Simplify FileResult 2015-10-06 11:26:56 -07:00
FileStreamResultTest.cs API Review - Split up .Actions 2015-09-21 21:54:02 -07:00
FlushReportingStream.cs Reorganize MVC namespaces 2015-09-01 22:28:33 -07:00
HttpNotFoundObjectResultTest.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
HttpNotFoundResultTests.cs Move ActionResult classes back to main namespace 2015-09-16 21:42:31 -07:00
HttpOkObjectResultTest.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
HttpOkResultTest.cs API Review - Split up .Actions 2015-09-21 21:54:02 -07:00
HttpResponseStreamWriterTest.cs Fix for #3252 - Issues with pooled buffer + unicode 2015-10-05 09:45:23 -07:00
HttpStatusCodeResultTests.cs API Review - Split up .Actions 2015-09-21 21:54:02 -07:00
HttpUnauthorizedResultTests.cs Move ActionResult classes back to main namespace 2015-09-16 21:42:31 -07:00
Microsoft.AspNet.Mvc.Core.Test.xproj
MvcOptionsTest.cs
NonDisposableStreamTest.cs
ObjectResultTests.cs Correct polarity of MediaTypeHeaderValue.IsSubsetOf()` checks and remove one conneg fallback 2015-10-14 11:59:20 -07:00
PhysicalFileResultTest.cs Renamed PhysicalFileProviderResult and VirtualFileProviderResult to PhysicalFileResult and VirtualFileResult respectively 2015-10-01 19:57:35 -07:00
ProducesAttributeTests.cs API Review - Split up .Actions 2015-09-21 21:54:02 -07:00
RedirectResultTest.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
RedirectToActionResultTest.cs API Review - Split up .Actions 2015-09-21 21:54:02 -07:00
RedirectToRouteResultTest.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
RequireHttpsAttributeTests.cs Replacing NotNullAttribute with thrown exceptions 2015-10-01 06:19:18 -07:00
ResponseCacheAttributeTest.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
SerializableErrorTests.cs Make ValueProviderResult a string-ish struct 2015-08-21 11:02:40 -07:00
TestBufferingFeature.cs [Fixes #3016] Disable response buffering in places where the content is already built/available 2015-09-02 09:22:36 -07:00
VirtualFileResultTest.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
project.json Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00