aspnetcore/test/Microsoft.AspNet.Mvc.Extens...
Doug Bunting 715a0b6021 Add `ModelState` entries for greedy and type-matching model binders
- part II of II for #2445
- `FormCollectionModelBinder` is an exception because container is not user-provided
 - no `ModelState` entry added
- enable tests that #2445 was blocking
 - fix these and other tests expecting different `ModelState` entries
- simplify logic in `FormFileModelBinder`

`ValueProviderResult`
- remove `protected` setters and parameterless constructor
 - no scenario for their use in subclasses; however `ConvertTo()` remains `virtual`
- add single-parameter constructor
 - use in most of the greedy and type-matching model binders
- add doc comments throughout class

nits:
- use new `ValueProviderResult` constructor in many existing tests
- `""` -> `string.Empty` and `vpr` -> `valueProviderResult` in `ValueProviderResultTest`
- improve some test names in `BodyValidationIntegrationTests`
- do not check `Message` of a Json.NET `Exception`
2015-06-23 22:34:55 -07:00
..
AntiXsrf Split Mvc.Core 2015-06-09 02:12:13 -07:00
Authorization Split Mvc.Core 2015-06-09 02:12:13 -07:00
Cors Split Mvc.Core 2015-06-09 02:12:13 -07:00
ModelBinding Split Mvc.Core 2015-06-09 02:12:13 -07:00
Properties Split Mvc.Core 2015-06-09 02:12:13 -07:00
Rendering Add `ModelState` entries for greedy and type-matching model binders 2015-06-23 22:34:55 -07:00
TestFiles Split Mvc.Core 2015-06-09 02:12:13 -07:00
ViewComponents Split Mvc.Core 2015-06-09 02:12:13 -07:00
ActionFilterAttributeTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
BadRequestObjectResultTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
BadRequestResultTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ChallengeResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ConsumesAttributeTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ContentResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ControllerTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ControllerUnitTestabilityTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
CreatedAtActionResultTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
CreatedAtRouteResultTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
CreatedResultTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
EmptyResultTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
FileContentResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
FilePathResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
FileResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
FileStreamResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
FormatFilterTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
FormatterMappingsTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
HttpNotFoundObjectResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
HttpNotFoundResultTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
HttpStatusCodeResultTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
HttpUnauthorizedResultTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
JsonInputFormatterTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
JsonOutputFormatterTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
JsonPatchInputFormatterTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
JsonResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
Microsoft.AspNet.Mvc.Extensions.Test.xproj Split Mvc.Core 2015-06-09 02:12:13 -07:00
MockAuthorizationOptionsAccessor.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
MockMvcOptionsAccessor.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
MockMvcViewOptionsAccessor.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
MvcCacheOptionsTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
PartialViewResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ProducesAttributeTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
RedirectResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
RedirectToActionResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
RedirectToRouteResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
RemoteAttributeTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
RequireHttpsAttributeTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
Resources.resx Split Mvc.Core 2015-06-09 02:12:13 -07:00
ResponseCacheAttributeTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ResponseCacheFilterTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ResultFilterAttributeTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
SerializableErrorTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ServiceBasedControllerActivatorTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
SkipStatusCodePagesAttributeTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ViewComponentTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ViewDataDictionaryOfTModelTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ViewDataDictionaryTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ViewEngineDescriptorExtensionsTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ViewEngineDescriptorTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ViewExecutorTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ViewResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
project.json Split Mvc.Core 2015-06-09 02:12:13 -07:00