aspnetcore/test/Microsoft.AspNet.Mvc.Core.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
..
ApplicationModel Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
Internal
ModelBinding 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
Properties
Routing
ActionExecutorTests.cs
BindAttributeTest.cs
ControllerActionArgumentBinderTests.cs
ControllerActionDescriptorBuilderTest.cs
ControllerActionDescriptorProviderTests.cs
ControllerActionInvokerTest.cs
DefaultActionSelectorTests.cs [Fixes #2700] Added HttpHeadAttribute 2015-06-17 12:58:02 -07:00
DefaultAssemblyProviderTests.cs
DefaultControllerActivatorTest.cs
DefaultControllerFactoryTest.cs
DefaultControllerTypeProviderTest.cs
DefaultFilterProviderTest.cs Tweak lifetimes for a few commonly resolved services 2015-06-25 12:52:15 -07:00
ExcludeTypeValidationFilterExtensionsTests.cs
FilterCollectionExtensionsTest.cs
FlushReportingStream.cs
HttpMethodProviderAttributesTests.cs [Fixes #2700] Added HttpHeadAttribute 2015-06-17 12:58:02 -07:00
HttpResponseStreamWriterTest.cs
KnownRouteValueConstraintTests.cs
Microsoft.AspNet.Mvc.Core.Test.xproj
MockMvcOptionsAccessor.cs
MockScopedInstance.cs
ModelBindingHelperTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
MvcCoreServiceCollectionExtensionsTest.cs Adding an 'AddMinimalMvc()' for Mvc.Core and sample 2015-06-12 11:29:47 -07:00
MvcOptionsTests.cs
MvcRouteHandlerTests.cs Fix build break: React to aspnet/EventNotification#11 2015-06-24 09:02:58 -07:00
NoContentFormatterTests.cs
NonDisposableStreamTest.cs
ObjectResultTests.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
OutputFormatterTests.cs [Fixes #2684] Removed Mvc.Common 2015-06-25 16:02:07 -07:00
RouteDataActionConstraintTest.cs
RouteTemplateProviderAttributesTest.cs [Fixes #2700] Added HttpHeadAttribute 2015-06-17 12:58:02 -07:00
ScopedInstanceTest.cs
SessionStateTempDataProviderTest.cs
SimpleTypeExcludeFilterTest.cs
StreamOutputFormatterTest.cs
StringOutputFormatterTests.cs
TempDataDictionaryTest.cs
TestController.cs
UrlHelperTest.cs
project.json