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
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
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
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
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
ControllerFromServicesTests.cs
CorsMiddlewareTests.cs
CorsTests.cs Fixing Tests 2015-06-24 09:56:31 -07:00
CustomRouteTest.cs
CustomUrlHelperTests.cs
DefaultOrderTest.cs
DefaultValuesTest.cs
DependencyResolverTests.cs
DirectivesTest.cs
ErrorPageTests.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
ExceptionInfo.cs
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
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
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
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
ModelBindingFromHeaderTest.cs
ModelBindingFromQueryTest.cs
ModelBindingFromRouteTest.cs
ModelBindingModelBinderAttributeTest.cs
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
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
RazorEmbeddedViewsTest.cs
RazorFileSystemCaseSensitivityTest.cs
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
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
RouteDataTest.cs
RoutingLowercaseUrlTest.cs
RoutingTests.cs
SerializableErrorTests.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
StreamOutputFormatterTest.cs
TagHelperSampleTest.cs
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
TestHelper.cs
TryValidateModelTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
ValueProviderTest.cs
VersioningTests.cs
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
WebApiCompatShimActionSelectionTest.cs
WebApiCompatShimBasicTest.cs Fixing tests in Mono. 2015-07-02 17:24:14 -07:00
WebApiCompatShimParameterBindingTest.cs
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
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