aspnetcore/test/Microsoft.AspNet.Mvc.Functi...
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
..
Logging
compiler/resources Update DNX Core on Linux workarounds 2015-10-10 23:09:51 -07:00
ActionResultTests.cs Correct polarity of MediaTypeHeaderValue.IsSubsetOf()` checks and remove one conneg fallback 2015-10-14 11:59:20 -07:00
ActivatorTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
AntiforgeryTestHelper.cs
AntiforgeryTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ApiExplorerTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ApplicationModelTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
BasicTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
BestEffortLinkGenerationTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
CompilationOptionsTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
CompositeViewEngineTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ConsumesAttributeTests.cs API Review - Split up .Actions 2015-09-21 21:54:02 -07:00
ContentNegotiationTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ControllerDiscoveryConventionTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ControllerFromServicesTests.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
CorsMiddlewareTests.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
CorsTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
CustomRouteTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
CustomUrlHelperTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
DefaultOrderTest.cs API Review - Split up .Actions 2015-09-21 21:54:02 -07:00
DefaultValuesTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
DirectivesTest.cs Allow @model specified in a page work with @inherits directive in 2015-09-23 12:10:10 -07:00
ErrorPageTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ExceptionInfo.cs Fixed typo (occured to occurred) in comments and resources. 2015-09-29 10:19:26 -07:00
FileResultTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
FilteredDefaultAssemblyProviderFixtureOfT.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
FiltersTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
FlushPointTest.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
FormatFilterTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
HtmlGenerationTest.cs Update DNX Core on Linux workarounds 2015-10-10 23:09:51 -07:00
HtmlHelperOptionsTest.cs Update DNX Core on Linux workarounds 2015-10-10 23:09:51 -07:00
HttpResponseMessageExceptions.cs
InlineConstraintTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
InputFormatterTests.cs Correct polarity of MediaTypeHeaderValue.IsSubsetOf()` checks and remove one conneg fallback 2015-10-14 11:59:20 -07:00
InputObjectValidationTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
JsonOutputFormatterTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
JsonPatchTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
JsonResultTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
LinkGenerationTests.cs Update DNX Core on Linux workarounds 2015-10-10 23:09:51 -07:00
LocalizationTest.cs Update DNX Core on Linux workarounds 2015-10-10 23:09:51 -07:00
Microsoft.AspNet.Mvc.FunctionalTests.xproj
ModelBindingBindingBehaviorTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ModelBindingDataMemberRequiredTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ModelBindingFromFormTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ModelBindingFromHeaderTest.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
ModelBindingFromQueryTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ModelBindingFromRouteTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ModelBindingModelBinderAttributeTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ModelBindingTest.cs Update DNX Core on Linux workarounds 2015-10-10 23:09:51 -07:00
ModelMetadataAttributeTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
MvcEncodedTestFixtureOfT.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
MvcSampleTests.cs Correct polarity of MediaTypeHeaderValue.IsSubsetOf()` checks and remove one conneg fallback 2015-10-14 11:59:20 -07:00
MvcStartupTests.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
MvcTestFixture.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
MvcTestFixtureOfT.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
OutputFormatterTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
PrecompilationTest.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
RazorEmbeddedViewsTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
RazorFileSystemCaseSensitivityTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
RazorPageExecutionInstrumentationTest.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
RazorViewLocationSpecificationTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
RemoteAttributeValidationTest.cs Update DNX Core on Linux workarounds 2015-10-10 23:09:51 -07:00
RequestServicesTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
RespectBrowserAcceptHeaderTests.cs Correct polarity of MediaTypeHeaderValue.IsSubsetOf()` checks and remove one conneg fallback 2015-10-14 11:59:20 -07:00
ResponseCacheTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
RoundTripTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
RouteDataTest.cs API Review - Split up .Actions 2015-09-21 21:54:02 -07:00
RoutingLowercaseUrlTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
RoutingTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
SerializableErrorTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
StreamOutputFormatterTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
TagHelperSampleTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
TagHelpersTest.cs Update DNX Core on Linux workarounds 2015-10-10 23:09:51 -07:00
TempDataTest.cs Move less-commonly used types out of .Rendering 2015-09-16 23:52:29 -07:00
TestApplicationEnvironment.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
TestHelper.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
TryValidateModelTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
UrlResolutionTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ValueProviderTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
VersioningTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ViewComponentTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
ViewEngineTests.cs Update DNX Core on Linux workarounds 2015-10-10 23:09:51 -07:00
WebApiCompatShimActionResultTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
WebApiCompatShimActionSelectionTest.cs API Review - Split up .Actions 2015-09-21 21:54:02 -07:00
WebApiCompatShimBasicTest.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
WebApiCompatShimParameterBindingTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
XmlDataContractSerializerFormattersWrappingTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
XmlDataContractSerializerInputFormatterTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
XmlOutputFormatterTests.cs Correct polarity of MediaTypeHeaderValue.IsSubsetOf()` checks and remove one conneg fallback 2015-10-14 11:59:20 -07:00
XmlSerializerFormattersWrappingTest.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
XmlSerializerInputFormatterTests.cs Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
project.json Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00