aspnetcore/test/Microsoft.AspNet.Mvc.Core.Test/ModelBinding
Doug Bunting 3f6ab3bb03 Add `ModelMetadata.ElementMetadata`
- #2664
- use new property to correctly determine `isTargetEnum` in `GetCurrentValues()`
 - avoid `ArgumentNullException` in all cases where raw values are `enum` but target is not
- stop skipping tests blocked by #2664, exposing a couple more #1487 issues
- use new property instead of private `GetElementType()` methods where possible
 - cleans up some duplicate code
 - also remove redundant use of `IsCollectionType` and `ElementMetadata`

nits:
- move properties above methods in `ModelMetadata`
- avoid accidentally-incorrect "Remove Unnecessary Usings"
2015-06-10 12:02:50 -07:00
..
Metadata Add `ModelMetadata.ElementMetadata` 2015-06-10 12:02:50 -07:00
Validation Split Mvc.Core 2015-06-09 02:12:13 -07:00
ArrayModelBinderTest.cs
BinderTypeBasedModelBinderModelBinderTest.cs Correct test expectations 2015-06-01 12:15:39 -07:00
BindingSourceModelBinderTest.cs Correct test expectations 2015-06-01 12:15:39 -07:00
BindingSourceValueProviderTest.cs
BodyModelBinderTests.cs
ByteArrayModelBinderTests.cs `ByteArrayModelBinder` should return `null` only when type is not matched 2015-06-01 12:20:17 -07:00
CancellationTokenModelBinderTests.cs Correct test expectations 2015-06-01 12:15:39 -07:00
CollectionModelBinderTest.cs
ComplexModelDtoTest.cs
CompositeModelBinderTest.cs Correct test expectations 2015-06-01 12:15:39 -07:00
CompositeValueProviderTests.cs
DictionaryBasedValueProviderTests.cs
DictionaryModelBinderTest.cs
ElementalValueProviderTests.cs
FormCollectionModelBinderTest.cs
FormFileModelBinderTest.cs
FormValueProviderFactoryTests.cs Correct test expectations 2015-06-01 12:15:39 -07:00
HeaderModelBinderTests.cs Correct test expectations 2015-06-01 12:15:39 -07:00
KeyValuePairModelBinderTest.cs Correct test expectations 2015-06-01 12:15:39 -07:00
ModelBindingContextTest.cs
ModelBindingResultTest.cs
MutableObjectModelBinderTest.cs Address #2526; remove use of a required validator when validating `[BindRequired]` 2015-06-05 16:56:05 -07:00
QueryStringValueProviderFactoryTest.cs
ReadableStringCollectionValueProviderTest.cs
SimpleHttpValueProvider.cs
TestValueProvider.cs
TypeConverterModelBinderTest.cs Correct test expectations 2015-06-01 12:15:39 -07:00
TypeMatchModelBinderTest.cs Correct test expectations 2015-06-01 12:15:39 -07:00