aspnetcore/test
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
..
Microsoft.AspNet.JsonPatch.Test
Microsoft.AspNet.Mvc.Abstractions.Test
Microsoft.AspNet.Mvc.ApiExplorer.Test
Microsoft.AspNet.Mvc.Core.Test 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
Microsoft.AspNet.Mvc.Extensions.Test
Microsoft.AspNet.Mvc.FunctionalTests 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
Microsoft.AspNet.Mvc.IntegrationTests 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
Microsoft.AspNet.Mvc.Razor.Host.Test
Microsoft.AspNet.Mvc.Razor.Test
Microsoft.AspNet.Mvc.TagHelpers.Test
Microsoft.AspNet.Mvc.Test
Microsoft.AspNet.Mvc.TestCommon
Microsoft.AspNet.Mvc.WebApiCompatShimTest
Microsoft.AspNet.Mvc.Xml.Test
WebSites