aspnetcore/test
Doug Bunting fc3a815e57
Restore `ModelMetadata.PropertyName != null` behaviour
- #7413 part 2 of 2
- add `ModelMetadata.Name` and `ParameterName`
  - use `Name` instead of `PropertyName` in most cases
- update `ModelMetadata.ContainerType` and other property use
  - choose using `MetadataKind` almost everywhere; support all possibilties
    - usually parameter metadata was possible but not handled
    - worst case was one or two potential NREs, especially `ContainerType.*` dereferences
  - improve `MvcCoreLoggerExtensions` metadata handling
    - add three new debug messages, one for type metadata and two for parameter metadata
- update `ModelMetadata.ContainerMetadata`, `ContainerType` and `PropertyName` doc comments
- no changes needed in Microsoft.AspNetCore.Mvc.ViewFeatures because parameters aren't viewed

nits:
- add missing `TestModelMetadataProvider.ForParameter(...)` method
- remove unused `EmptyModelMetadataProvider` instances in `ModelMetadataTest`
- refactor `ModelValidationResultComparer` out of DataAnnotationsModelValidatorTest`
- take VS suggestions, mostly related to variable inlining and object initializers
2018-03-29 07:22:00 -07:00
..
Microsoft.AspNetCore.Mvc.Abstractions.Test Restore `ModelMetadata.PropertyName != null` behaviour 2018-03-29 07:22:00 -07:00
Microsoft.AspNetCore.Mvc.Analyzers.Test
Microsoft.AspNetCore.Mvc.ApiExplorer.Test Add mapping service for action results 2018-03-27 17:13:41 -07:00
Microsoft.AspNetCore.Mvc.Core.Test Restore `ModelMetadata.PropertyName != null` behaviour 2018-03-29 07:22:00 -07:00
Microsoft.AspNetCore.Mvc.Cors.Test
Microsoft.AspNetCore.Mvc.DataAnnotations.Test Restore `ModelMetadata.PropertyName != null` behaviour 2018-03-29 07:22:00 -07:00
Microsoft.AspNetCore.Mvc.Formatters.Json.Test
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test
Microsoft.AspNetCore.Mvc.FunctionalTests CompiledPageRouteModelProvider should de-dup descriptors 2018-03-28 11:24:49 -07:00
Microsoft.AspNetCore.Mvc.IntegrationTests Add compatibility switch controlling parameter metadata and top-level validation 2018-03-26 12:29:04 -07:00
Microsoft.AspNetCore.Mvc.Localization.Test
Microsoft.AspNetCore.Mvc.Razor.Test ApplicationPartFactory: The works 2018-03-21 15:40:15 -07:00
Microsoft.AspNetCore.Mvc.RazorPages.Test CompiledPageRouteModelProvider should de-dup descriptors 2018-03-28 11:24:49 -07:00
Microsoft.AspNetCore.Mvc.TagHelpers.Test Add model attribute for PartialTagHelper. 2018-03-23 16:13:55 -07:00
Microsoft.AspNetCore.Mvc.Test ApplicationPartFactory: The works 2018-03-21 15:40:15 -07:00
Microsoft.AspNetCore.Mvc.TestCommon Restore `ModelMetadata.PropertyName != null` behaviour 2018-03-29 07:22:00 -07:00
Microsoft.AspNetCore.Mvc.TestDiagnosticListener
Microsoft.AspNetCore.Mvc.ViewFeatures.Test Introduce LifecycleProperty 2018-03-22 10:18:36 -07:00
Microsoft.AspNetCore.Mvc.WebApiCompatShimTest
WebSites CompiledPageRouteModelProvider should de-dup descriptors 2018-03-28 11:24:49 -07:00
Directory.Build.props Stop building\testing on netcoreapp2.0 2018-03-19 10:09:51 -07:00
MvcTests.ruleset