aspnetcore/test
Doug Bunting eee1a9fef4 Do not generate a validation summary when `excludePropertyErrors` unless specific model has an error
- #5209
- update affected `HtmlHelperValiationSummaryTest` and functional tests
- add `ValidationSummaryTagHelperTest` tests to cover related scenarios

##### Behaviour changes when no errors exist for the model:
###### Tag helper
``` html
<div asp-validation-summary="ModelOnly" class="order"><h3>Oopsie<h3></div>
```
previously generated
``` html
<div class="order validation-summary-errors"><h3>Oopsie</h3><ul><li style="display:none"></li>
</ul></div>
```
and now generates
``` html
<div class="order"><h3>Oopsie</h3></div>
```
###### HTML helper
``` c#
@Html.ValidationSummary(excludePropertyErrors: true, message: "Oopsie")
```
previously generated
``` html
<div class=\"validation-summary-errors\"><span>Oopsie</span>
<ul><li style=\"display:none\"></li>
</ul></div>
```
and now generates nothing (`@HtmlString.Empty`).
2016-09-08 15:36:47 -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 Do not generate a validation summary when `excludePropertyErrors` unless specific model has an error 2016-09-08 15:36:47 -07:00
Microsoft.AspNetCore.Mvc.IntegrationTests
Microsoft.AspNetCore.Mvc.Localization.Test
Microsoft.AspNetCore.Mvc.Razor.Host.Test
Microsoft.AspNetCore.Mvc.Razor.Test
Microsoft.AspNetCore.Mvc.TagHelpers.Test Do not generate a validation summary when `excludePropertyErrors` unless specific model has an error 2016-09-08 15:36:47 -07:00
Microsoft.AspNetCore.Mvc.Test
Microsoft.AspNetCore.Mvc.TestCommon
Microsoft.AspNetCore.Mvc.TestDiagnosticListener.Sources
Microsoft.AspNetCore.Mvc.ViewFeatures.Test Do not generate a validation summary when `excludePropertyErrors` unless specific model has an error 2016-09-08 15:36:47 -07:00
Microsoft.AspNetCore.Mvc.WebApiCompatShimTest
WebSites Do not generate a validation summary when `excludePropertyErrors` unless specific model has an error 2016-09-08 15:36:47 -07:00