aspnetcore/test/Microsoft.AspNetCore.Mvc.Fu...
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
..
compiler/resources Do not generate a validation summary when `excludePropertyErrors` unless specific model has an error 2016-09-08 15:36:47 -07:00
AntiforgeryTestHelper.cs
AntiforgeryTests.cs
ApiExplorerTest.cs Suppress default status code response type in api descriptions when explicit response types have been provided 2016-06-09 12:07:52 -07:00
ApplicationModelTest.cs
BasicTests.cs Serialize JSON using camel case by default 2016-06-09 11:58:23 -07:00
CompilationOptionsTests.cs
ConsumesAttributeTests.cs
ContentNegotiationTest.cs Serialize JSON using camel case by default 2016-06-09 11:58:23 -07:00
ControllerFromServicesTests.cs
CorsTests.cs
DefaultOrderTest.cs
DefaultValuesTest.cs
DirectivesTest.cs Correct test failures on Windows with `git config core.autocrlf false` 2016-09-08 09:20:05 -07:00
ErrorPageTests.cs Added a test to verify ReflectionTypeLoadException 2016-07-25 12:06:16 -07:00
FileResultTests.cs
FiltersTest.cs Reverting accidental changes 2016-09-08 08:28:51 -07:00
FlushPointTest.cs
FormFileUploadTest.cs ModelBinding: Remove IsReadOnly checks and add/update tests 2016-08-04 14:20:23 -07:00
HtmlGenerationTest.cs Correct test failures on Windows with `git config core.autocrlf false` 2016-09-08 09:20:05 -07:00
HtmlHelperOptionsTest.cs Do not generate a validation summary when `excludePropertyErrors` unless specific model has an error 2016-09-08 15:36:47 -07:00
InputFormatterTests.cs
InputObjectValidationTests.cs
JsonOutputFormatterTests.cs Serialize JSON using camel case by default 2016-06-09 11:58:23 -07:00
JsonResultTest.cs Serialize JSON using camel case by default 2016-06-09 11:58:23 -07:00
LinkGenerationTests.cs
Microsoft.AspNetCore.Mvc.FunctionalTests.xproj One build to rule them all 2016-07-06 16:21:18 -07:00
MvcEncodedTestFixtureOfT.cs
MvcSampleFixture.cs
MvcSandboxTest.cs
MvcTestFixture.cs
OutputFormatterTest.cs
RazorPageExecutionInstrumentationTest.cs
RazorViewLocationSpecificationTest.cs
RemoteAttributeValidationTest.cs
RequestServicesTest.cs
RespectBrowserAcceptHeaderTests.cs Serialize JSON using camel case by default 2016-06-09 11:58:23 -07:00
RouteDataTest.cs
RoutingTests.cs [Fixes #5038] HTTP Verbs mapping error GET and DELETE 2016-08-01 12:49:23 -07:00
SerializableErrorTests.cs
SimpleTests.cs
StreamOutputFormatterTest.cs
TagHelpersFromServicesTest.cs
TagHelpersTest.cs
TempDataTest.cs
UrlResolutionTest.cs
VersioningTests.cs
ViewComponentFromServicesTests.cs
ViewEngineTests.cs
WebApiCompatShimActionResultTest.cs Serialize JSON using camel case by default 2016-06-09 11:58:23 -07:00
WebApiCompatShimActionSelectionTest.cs
WebApiCompatShimBasicTest.cs
WebApiCompatShimParameterBindingTest.cs Serialize JSON using camel case by default 2016-06-09 11:58:23 -07:00
XmlDataContractSerializerFormattersWrappingTest.cs
XmlDataContractSerializerInputFormatterTest.cs Restore `[Fact]` and `[Theory]` attributes 2016-07-14 15:25:45 -07:00
XmlOutputFormatterTests.cs
XmlSerializerFormattersWrappingTest.cs
XmlSerializerInputFormatterTests.cs
project.json Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00