aspnetcore/test
Doug Bunting d3c24637b1 Correct `Type.IsAssignableFrom()` polarity
- #3482
 - see new tests; many failed without fixes in the product code
 - add support for binding `IFormFileCollection` properties
 - make `FormFileModelBinder` / `HeaderModelBinder` collection handling consistent w/ `GenericModelBinder`++
  - see also dupe bug #4129 which describes some of the prior inconsistencies
  - add checks around creating collections and leaving non-top-level collections `null` (not empty)
 - move smarts down to `ModelBindingHelper.GetCompatibleCollection<T>()` (was `ConvertValuesToCollectionType<T>()`)
  - add `ModelBindingHelper.CanGetCompatibleCollection()`
  - add fallback for cases like `public IEnumerable<T> Property { get; set; } = new T[0];`
- #4193
 - allow `Exception`s while activating collections to propagate
- part of #4181
 - `CollectionModelBinder` no longer creates an instance to check if it can create an instance
 - not a complete fix since it still creates unnecessary intermediate lists

nits:
- correct a few existing test names since nothing is not the same as `ModelBindingResult.Failed()`
- remove a couple of unnecessary `return` statements
- correct stale "optimized" comments
- explicit `(string)`
2016-03-03 09:55:01 -08:00
..
Microsoft.AspNetCore.Mvc.Abstractions.Test Remove project name from output path 2016-03-02 14:39:12 -08:00
Microsoft.AspNetCore.Mvc.ApiExplorer.Test Remove project name from output path 2016-03-02 14:39:12 -08:00
Microsoft.AspNetCore.Mvc.Core.Test Correct `Type.IsAssignableFrom()` polarity 2016-03-03 09:55:01 -08:00
Microsoft.AspNetCore.Mvc.Cors.Test Remove project name from output path 2016-03-02 14:39:12 -08:00
Microsoft.AspNetCore.Mvc.DataAnnotations.Test Remove project name from output path 2016-03-02 14:39:12 -08:00
Microsoft.AspNetCore.Mvc.Formatters.Json.Test Remove project name from output path 2016-03-02 14:39:12 -08:00
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test Remove project name from output path 2016-03-02 14:39:12 -08:00
Microsoft.AspNetCore.Mvc.FunctionalTests Remove project name from output path 2016-03-02 14:39:12 -08:00
Microsoft.AspNetCore.Mvc.IntegrationTests Correct `Type.IsAssignableFrom()` polarity 2016-03-03 09:55:01 -08:00
Microsoft.AspNetCore.Mvc.Localization.Test Remove project name from output path 2016-03-02 14:39:12 -08:00
Microsoft.AspNetCore.Mvc.Razor.Host.Test Remove project name from output path 2016-03-02 14:39:12 -08:00
Microsoft.AspNetCore.Mvc.Razor.Test Correct `Type.IsAssignableFrom()` polarity 2016-03-03 09:55:01 -08:00
Microsoft.AspNetCore.Mvc.TagHelpers.Test Remove project name from output path 2016-03-02 14:39:12 -08:00
Microsoft.AspNetCore.Mvc.Test Remove project name from output path 2016-03-02 14:39:12 -08:00
Microsoft.AspNetCore.Mvc.TestCommon Remove project name from output path 2016-03-02 14:39:12 -08:00
Microsoft.AspNetCore.Mvc.TestDiagnosticListener.Sources Remove project name from output path 2016-03-02 14:39:12 -08:00
Microsoft.AspNetCore.Mvc.ViewFeatures.Test Correct `Type.IsAssignableFrom()` polarity 2016-03-03 09:55:01 -08:00
Microsoft.AspNetCore.Mvc.WebApiCompatShimTest Remove project name from output path 2016-03-02 14:39:12 -08:00
WebSites Remove project name from output path 2016-03-02 14:39:12 -08:00