aspnetcore/test/Microsoft.AspNet.Mvc.ModelB.../Validation
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
..
AssociatedValidatorProviderTest.cs Fixing build break 2015-01-15 14:20:00 -08:00
CompareAttributeAdapterTest.cs matched classnames with filenames 2014-11-25 11:21:17 -08:00
CompositeModelValidatorProviderTest.cs Adding Resource Filters 2015-01-12 14:18:20 -08:00
DataAnnotationsModelValidatorProviderTest.cs
DataAnnotationsModelValidatorTest.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
DataMemberModelValidatorProviderTest.cs
DefaultBodyModelValidatorTests.cs Adding Resource Filters 2015-01-12 14:18:20 -08:00
MaxLengthAttributeAdapterTest.cs Updating ModelBinding tests to work in Mono 2014-09-30 20:16:21 -07:00
MinLengthAttributeAdapterTest.cs Updating ModelBinding tests to work in Mono 2014-09-30 20:16:21 -07:00
ModelStateDictionaryTest.cs Use `[Display(Order=x)]` to sort validation messages and properties 2015-01-29 09:31:05 -08:00
ModelValidationNodeTest.cs Use `[Display(Order=x)]` to sort validation messages and properties 2015-01-29 09:31:05 -08:00
RangeAttributeAdapterTest.cs
ReferenceEqualityComparerTest.cs Remove use of `Assert.DoesNotThrow()` 2014-12-11 15:51:15 -08:00
RequiredAttributeAdapterTest.cs Updating ModelBinding tests to work in Mono 2014-09-30 20:16:21 -07:00
StringLengthAttributeAdapterTest.cs Updating ModelBinding tests to work in Mono 2014-09-30 20:16:21 -07:00