aspnetcore/test/Microsoft.AspNetCore.Mvc.Co...
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
..
ApplicationModel [Fixes #4043] Figure out ControllerModel.AttributeRoutes 2016-03-01 10:28:24 -08:00
Builder
Controllers Added caching for validators 2016-01-26 17:15:16 -08:00
DependencyInjection
Filters Updating to use cli 2016-02-22 17:49:51 -08:00
Formatters [Fixes #4085] Controller helper inconsistency: HttpNotFound(), Ok() 2016-02-19 09:25:04 -08:00
Infrastructure * Moving DNX dependencies to test only 2016-02-23 18:58:42 -08:00
Internal Transition to Netstandard. 2016-03-01 13:39:31 -08:00
ModelBinding Correct `Type.IsAssignableFrom()` polarity 2016-03-03 09:55:01 -08:00
Properties
Routing
BadRequestObjectResultTests.cs
BadRequestResultTests.cs
BindAttributeTest.cs Reducing ModelBindingContext allocations 2016-02-02 12:10:43 -08:00
ChallengeResultTest.cs
ConsumesAttributeTests.cs React to MediaTypeHeaderValue.Parse exception message change. 2016-02-08 22:26:55 -08:00
ContentResultTest.cs
ControllerBaseTest.cs [Fixes #4085] Controller helper inconsistency: HttpNotFound(), Ok() 2016-02-19 09:25:04 -08:00
CreatedAtActionResultTests.cs
CreatedAtRouteResultTests.cs
CreatedResultTests.cs
EmptyResultTests.cs
FileContentResultTest.cs
FileResultTest.cs
FileStreamResultTest.cs
FlushReportingStream.cs
ForbidResultTest.cs
HttpNotFoundObjectResultTest.cs [Fixes #4085] Controller helper inconsistency: HttpNotFound(), Ok() 2016-02-19 09:25:04 -08:00
HttpNotFoundResultTests.cs [Fixes #4085] Controller helper inconsistency: HttpNotFound(), Ok() 2016-02-19 09:25:04 -08:00
HttpOkObjectResultTest.cs [Fixes #4085] Controller helper inconsistency: HttpNotFound(), Ok() 2016-02-19 09:25:04 -08:00
HttpOkResultTest.cs [Fixes #4085] Controller helper inconsistency: HttpNotFound(), Ok() 2016-02-19 09:25:04 -08:00
HttpStatusCodeResultTests.cs [Fixes #4085] Controller helper inconsistency: HttpNotFound(), Ok() 2016-02-19 09:25:04 -08:00
HttpUnauthorizedResultTests.cs [Fixes #4085] Controller helper inconsistency: HttpNotFound(), Ok() 2016-02-19 09:25:04 -08:00
LocalRedirectResultTest.cs
MediaTypeCollectionTest.cs
Microsoft.AspNetCore.Mvc.Core.Test.xproj Remove project name from output path 2016-03-02 14:39:12 -08:00
MvcOptionsTest.cs
NonDisposableStreamTest.cs Transition to Netstandard. 2016-03-01 13:39:31 -08:00
ObjectResultTests.cs
PhysicalFileResultTest.cs
ProducesAttributeTests.cs React to MediaTypeHeaderValue.Parse exception message change. 2016-02-08 22:26:55 -08:00
RedirectResultTest.cs
RedirectToActionResultTest.cs
RedirectToRouteResultTest.cs
RequireHttpsAttributeTests.cs [Fixes #4112 #4093] Adding support for custom SSL port 2016-02-23 10:21:11 -08:00
ResponseCacheAttributeTest.cs
SerializableErrorTests.cs
TestBufferingFeature.cs
VirtualFileResultTest.cs
project.json Transition to Netstandard. 2016-03-01 13:39:31 -08:00