aspnetcore/test/Microsoft.AspNetCore.Mvc.Vi...
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
..
DependencyInjection
Internal
Properties
Rendering Do not generate a validation summary when `excludePropertyErrors` unless specific model has an error 2016-09-08 15:36:47 -07:00
ViewComponents [Fixes #5166] Support passing instance directly when invoking ViewComponents with single parameter 2016-08-26 16:33:42 -07:00
ViewEngines
ViewFeatures
ControllerTest.cs
ControllerUnitTestabilityTests.cs
Microsoft.AspNetCore.Mvc.ViewFeatures.Test.xproj
ModelStateDictionaryExtensionsTest.cs
PartialViewResultTest.cs
RemoteAttributeTest.cs
Resources.resx
SkipStatusCodePagesAttributeTest.cs
TestApplicationPart.cs
ViewComponentResultTest.cs [Fixes #5166] Support passing instance directly when invoking ViewComponents with single parameter 2016-08-26 16:33:42 -07:00
ViewComponentTests.cs Change `ViewComponent.View()` to flow the `ViewData.Model`. 2016-08-25 10:22:23 -07:00
ViewResultTest.cs
project.json Updating to Moq \ Castle.Core that does not require imports 2016-08-08 12:20:14 -07:00