aspnetcore/test
Doug Bunting a0c8834c70 Preserve existing metadata in `ViewDataDictionary` where possible
- #4116
- generalize rules for `ModelMetadata` creation; minimize metadata changes when Model is updated
 - down to a single special case in VDD for `Nullable<T>`
 - note existing functional tests did not need to change
- remove `ViewDataDictionary(ViewDataDictionary, object)` constructor; use `new VDD<object>(source, model)`
- allow all `Model` assignments in a view component
 - copy-constructed VDD in `ViewComponentContext` previously preserved the source's declared type

nits:
- do not call `virtual SetModel()` method from constructor; now mostly redundant
 - logic in copy constructor and `SetModel()` is consistent but different enough to keep code separate
- add some missing doc comments
- fix doc comment property versus type confusion; never need to specify `ViewDataDictionary.` prefix
- fix a few `TemplateBuilder` comments and remove unnecessary `model: null` argument to VDD constructor
2016-04-08 14:44:36 -07:00
..
Microsoft.AspNetCore.Mvc.Abstractions.Test
Microsoft.AspNetCore.Mvc.ApiExplorer.Test
Microsoft.AspNetCore.Mvc.Core.Test
Microsoft.AspNetCore.Mvc.Cors.Test
Microsoft.AspNetCore.Mvc.DataAnnotations.Test
Microsoft.AspNetCore.Mvc.Formatters.Json.Test
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test
Microsoft.AspNetCore.Mvc.FunctionalTests Preserve existing metadata in `ViewDataDictionary` where possible 2016-04-08 14:44:36 -07:00
Microsoft.AspNetCore.Mvc.IntegrationTests
Microsoft.AspNetCore.Mvc.Localization.Test Fix for #3659 - handle IHtmlContent in localization 2016-04-08 11:20:49 -07:00
Microsoft.AspNetCore.Mvc.Razor.Host.Test
Microsoft.AspNetCore.Mvc.Razor.Test
Microsoft.AspNetCore.Mvc.TagHelpers.Test
Microsoft.AspNetCore.Mvc.Test
Microsoft.AspNetCore.Mvc.TestCommon
Microsoft.AspNetCore.Mvc.TestDiagnosticListener.Sources
Microsoft.AspNetCore.Mvc.ViewFeatures.Test Preserve existing metadata in `ViewDataDictionary` where possible 2016-04-08 14:44:36 -07:00
Microsoft.AspNetCore.Mvc.WebApiCompatShimTest
WebSites Preserve existing metadata in `ViewDataDictionary` where possible 2016-04-08 14:44:36 -07:00