aspnetcore/test/Microsoft.AspNet.Mvc.Format...
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
..
Internal Reorganize MVC namespaces 2015-09-01 22:28:33 -07:00
Models
FlushReportingStream.cs
Microsoft.AspNet.Mvc.Formatters.Xml.Test.xproj
XmlAssert.cs
XmlAssertTest.cs Remove use of `IsMono` to no-op a test 2015-09-10 11:55:51 -07:00
XmlDataContractSerializerInputFormatterTest.cs Correct polarity of MediaTypeHeaderValue.IsSubsetOf()` checks and remove one conneg fallback 2015-10-14 11:59:20 -07:00
XmlDataContractSerializerOutputFormatterTest.cs Changes per PR comments 2015-09-17 15:42:58 -07:00
XmlSerializerInputFormatterTest.cs Correct polarity of MediaTypeHeaderValue.IsSubsetOf()` checks and remove one conneg fallback 2015-10-14 11:59:20 -07:00
XmlSerializerOutputFormatterTest.cs Reorganize MVC namespaces 2015-09-01 22:28:33 -07:00
project.json Update project.json to have warningsAsErrors accept a bool. 2015-09-02 15:35:13 -07:00