aspnetcore/test/Microsoft.AspNet.Mvc.Functi...
N. Taylor Mullen fc2019c973 Modify `TypeConverterModelBinder`'s `ModelBindingResult.IsModelSet` to be false when model value is `null` for non-null accepting types.
- Previously `ModelBindingResult.IsModelSet` would be set to true if type conversions resulted in empty => `null` values for ValueTypes. This resulted in improper usage of `ModelBindingResult`s creating null ref exceptions in certain cases.
- Updated existing functional test to account for new behavior. Previously it was handling the null ref exception by stating that errors were simply invalid; now we can provide a more distinct error.
- Added unit test to validate `TypeConverterModelBinder` does what it's supposed to when conversions result in null values.
- Added additional integration tests for `TypeConverterModelBinder`.

#2720
2015-07-02 20:03:32 -07:00
..
Logging Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
compiler/resources Modify `TypeConverterModelBinder`'s `ModelBindingResult.IsModelSet` to be false when model value is `null` for non-null accepting types. 2015-07-02 20:03:32 -07:00
ActionResultTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ActivatorTests.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
AntiforgeryTestHelper.cs Use new antiforgery package 2015-06-25 14:45:00 -07:00
AntiforgeryTests.cs Use new antiforgery package 2015-06-25 14:45:00 -07:00
ApiExplorerTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
ApplicationModelTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
BasicTests.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
BestEffortLinkGenerationTest.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
CompilationOptionsTests.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
CompositeViewEngineTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ConsumesAttributeTests.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
ContentNegotiationTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
ControllerDiscoveryConventionTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ControllerFromServicesTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
CorsMiddlewareTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
CorsTests.cs Fixing Tests 2015-06-24 09:56:31 -07:00
CustomRouteTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
CustomUrlHelperTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
DefaultOrderTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
DefaultValuesTest.cs Fix #2414 Part 2 - Add [DefaultValue(...)] support to the invoker for 2015-05-14 13:58:02 -07:00
DependencyResolverTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
DirectivesTest.cs Rename _GlobalImport.cshtml files to _ViewImports.cshtml 2015-05-21 12:27:08 -07:00
ErrorPageTests.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
ExceptionInfo.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
FileResultTests.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
FiltersTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
FlushPointTest.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
FormatFilterTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
HtmlGenerationTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
HtmlHelperOptionsTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
HttpResponseMessageExceptions.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
InlineConstraintTests.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
InputFormatterTests.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
InputObjectValidationTests.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
JsonOutputFormatterTests.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
JsonPatchTest.cs Fix 2224: [Jsonpatch]Added tests for custom converters on properties 2015-05-14 17:18:42 -07:00
JsonResultTest.cs [Fixes #2715] Removed formatter dependency from JsonResult and JsonViewComponentResult 2015-06-25 14:09:32 -07:00
LinkGenerationTests.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
LocalizationTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
Microsoft.AspNet.Mvc.FunctionalTests.xproj
ModelBindingBindingBehaviorTest.cs Address #2526; remove use of a required validator when validating `[BindRequired]` 2015-06-05 16:56:05 -07:00
ModelBindingDataMemberRequiredTest.cs Address #2526; remove use of a required validator when validating `[BindRequired]` 2015-06-05 16:56:05 -07:00
ModelBindingFromFormTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ModelBindingFromHeaderTest.cs Fix #2407 - Part 1 - Make model binding behavior for [Required] compatible 2015-05-19 15:57:56 -07:00
ModelBindingFromQueryTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ModelBindingFromRouteTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ModelBindingModelBinderAttributeTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ModelBindingTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
ModelMetadataAttributeTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
MvcSampleTests.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
MvcStartupTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
OutputFormatterTest.cs [Fixes #2409] Return EmptyResult for void actions 2015-06-11 11:51:51 -07:00
PrecompilationTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
RazorCompilerCacheTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
RazorEmbeddedViewsTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
RazorFileSystemCaseSensitivityTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
RazorPageExecutionInstrumentationTest.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
RazorViewLocationSpecificationTest.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
RemoteAttributeValidationTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
RequestServicesTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
RespectBrowserAcceptHeaderTests.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
ResponseCacheTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
RoundTripTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
RouteDataTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
RoutingLowercaseUrlTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
RoutingTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
SerializableErrorTests.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
StreamOutputFormatterTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
TagHelperSampleTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
TagHelpersTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
TempDataTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
TestApplicationEnvironment.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
TestHelper.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
TryValidateModelTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
ValueProviderTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
VersioningTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ViewComponentTests.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
ViewEngineTests.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
WebApiCompatShimActionResultTest.cs [Fixes #2545] RedirectToRouteResult doesn't use RouteName property when calculating destination URL 2015-05-13 12:35:25 -07:00
WebApiCompatShimActionSelectionTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
WebApiCompatShimBasicTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
WebApiCompatShimParameterBindingTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
XmlDataContractSerializerFormattersWrappingTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
XmlDataContractSerializerInputFormatterTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
XmlOutputFormatterTests.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
XmlSerializerFormattersWrappingTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
XmlSerializerInputFormatterTests.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
project.json Use new antiforgery package 2015-06-25 14:45:00 -07:00