aspnetcore/test/Microsoft.AspNet.Mvc.Integr...
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
..
ActionParametersIntegrationTest.cs
ArrayModelBinderIntegrationTest.cs
BinderTypeBasedModelBinderIntegrationTest.cs
BodyValidationIntegrationTests.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
ByteArrayModelBinderIntegrationTest.cs
CancellationTokenModelBinderIntegrationTest.cs
CollectionModelBinderIntegrationTest.cs
DictionaryModelBinderIntegrationTest.cs
FormCollectionModelBindingIntegrationTest.cs
FormFileModelBindingIntegrationTest.cs
GenericModelBinderIntegrationTest.cs Add `ModelBindingContext.IsFirstChanceBinding` and `IsTopLevelObject` 2015-06-24 09:17:29 -07:00
HeaderModelBinderIntegrationTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
KeyValuePairModelBinderIntegrationTest.cs
Microsoft.AspNet.Mvc.IntegrationTests.xproj
ModelBindingTestHelper.cs
MutableObjectModelBinderIntegrationTest.cs
ServicesModelBinderIntegrationTest.cs
TestMvcOptions.cs
TryUpdateModelIntegrationTest.cs
TypeConverterModelBinderIntegrationTest.cs 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
ValidationIntegrationTests.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
project.json