aspnetcore/test/Microsoft.AspNet.Mvc.Core.Test/Rendering
Doug Bunting 8779cafbab Use `[Display(Order=x)]` to sort validation messages and properties
- #964
- compute `ModelMetadata.Order` based on `[Display]` attribute
 - property affects e.g. `@Html.DisplayFor()` generation for complex objects
 - also affects order of messages in validation summaries
- test new scenarios involving `ModelMetadata.Order`
 - per-property `ModelMetadata` and related tests
 - validation and `HtmlHelper` tests
 - add `HtmlHelperValidationSummaryTest` (which touches on #453)
- update ModelBinding functional test to show use of `[Display(Order = x)]`

nits:
- move more `NullDisplayText` bits into proper slots (just above `Order`)
 - add doc comments for `ComputeNullDisplayText()`
- add more assertions in tests using `ModelStateDictionary.HasReachedMaxErrors`
- remove some trailing whitespace
- avoid `Assert.True()` & `Assert.False()`; split some assertions up
- `""` -> `string.Empty` in affected test classes
- rename "DefaultEditorTemplatesTest~~s~~" class and file to follow guidelines
- rename "ModelBindingTest~~s~~" class and file to follow guidelines

FYI #1888 covers a predictable (or even just stable) order in the UI
2015-01-29 09:31:05 -08:00
..
Expression Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
ViewEngine Update templates\samples\tests to use ensure viewstart.cshtml and views directory names are cased appropriately. #1559 2014-12-05 13:27:22 -08:00
BufferEntryCollectionTest.cs
DefaultDisplayTemplatesTest.cs Use `[Display(Order=x)]` to sort validation messages and properties 2015-01-29 09:31:05 -08:00
DefaultEditorTemplatesTest.cs Use `[Display(Order=x)]` to sort validation messages and properties 2015-01-29 09:31:05 -08:00
DefaultTemplatesUtilities.cs Handle PipelineCore rename. 2015-01-15 15:25:17 -08:00
HtmlAttributePropertyHelperTest.cs
HtmlHelperCheckboxTest.cs Correct `CheckBoxFor` to ignore `ViewData` 2015-01-16 17:20:34 -08:00
HtmlHelperDisplayNameExtensionsTest.cs Add a custom collection type for ModelMetadata.Properties 2015-01-26 14:36:40 -08:00
HtmlHelperDisplayTextTest.cs
HtmlHelperFormExtensionsTest.cs Address PR comments in test code 2014-11-12 21:56:03 -08:00
HtmlHelperFormTest.cs Address PR comments in test code 2014-11-12 21:56:03 -08:00
HtmlHelperHiddenTest.cs Add `Html.BeginForm()` and `Html.BeginRouteForm()` tests 2014-11-12 21:55:48 -08:00
HtmlHelperLabelExtensionsTest.cs Add a custom collection type for ModelMetadata.Properties 2015-01-26 14:36:40 -08:00
HtmlHelperLinkGenerationTest.cs Delete trailing whitespace 2014-11-20 16:18:09 -08:00
HtmlHelperNameExtensionsTest.cs TODO removal 2014-11-20 15:01:35 -08:00
HtmlHelperPartialExtensionsTest.cs
HtmlHelperPasswordTest.cs Adding unit tests for HtmlHelper.Password 2014-11-20 12:12:29 -08:00
HtmlHelperTest.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
HtmlHelperValidationSummaryTest.cs Use `[Display(Order=x)]` to sort validation messages and properties 2015-01-29 09:31:05 -08:00
HtmlHelperValueExtensionsTest.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
StringCollectionTextWriterTest.cs Delete trailing whitespace 2014-11-20 16:18:09 -08:00
TagBuilderTest.cs
ViewContextTests.cs
ViewDataOfTTest.cs