aspnetcore/test/Microsoft.AspNet.Mvc.Core.Test
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
..
ActionResults Added StatusCode property to OutputFormatterContext 2015-01-26 17:32:04 -08:00
AntiXsrf
ApplicationModel Provided a way to add data to ActionDescriptor from ApplicationModel. 2015-01-26 15:20:02 -08:00
Description Adds parameter information to ApiExplorer 2015-01-22 13:30:41 -08:00
Filters
Formatters Add SerializerSettings property to Xml DataContractSerializer input and output formatters. 2015-01-28 23:50:16 +01:00
Internal Handle trailing semicolon after @inject. 2015-01-22 14:01:10 -08:00
Logging
OptionDescriptors
ParameterBinding Fix for #1538 and #1891 2015-01-28 16:53:28 -08:00
Properties
Rendering Use `[Display(Order=x)]` to sort validation messages and properties 2015-01-29 09:31:05 -08:00
Routing
TestFiles
Utils
ViewComponents Issue #1525 - Enhancements to ActionContext 2015-01-27 14:35:31 -08:00
ActionConstraintValuesTest.cs
ActionDescriptorValuesTest.cs
ActionExecutorTests.cs
ActionModelValuesTest.cs
ApiExplorerModelValuesTest.cs
AttributeRouteInfoValuesTest.cs
AttributeRouteModelValuesTest.cs
BodyModelBinderTests.cs
ConsumesAttributeTests.cs
ControllerActionDescriptorBuilderTest.cs Provided a way to add data to ActionDescriptor from ApplicationModel. 2015-01-26 15:20:02 -08:00
ControllerActionDescriptorProviderTests.cs Add ApiExplorer details to ApplicationModel 2015-01-26 14:47:11 -08:00
ControllerActionInvokerTest.cs Fix for #1538 and #1891 2015-01-28 16:53:28 -08:00
ControllerModelValuesTest.cs
ControllerTests.cs
ControllerUnitTestabilityTests.cs
DefaultActionDescriptorCollectionProviderLoggingTest.cs
DefaultActionSelectorSelectAsyncValuesTest.cs
DefaultActionSelectorTests.cs
DefaultAssemblyProviderTests.cs
DefaultControllerActivatorTest.cs Issue #1525 - Enhancements to ActionContext 2015-01-27 14:35:31 -08:00
DefaultControllerFactoryTest.cs
DefaultInputFormatterSelectorTests.cs
DefaultViewComponentActivatorTests.cs Issue #1525 - Enhancements to ActionContext 2015-01-27 14:35:31 -08:00
FilterDescriptorValuesTest.cs
FilterValuesTest.cs
HttpMethodProviderAttributesTests.cs
JsonResultTest.cs [Fixes#1792]Separate XML serializers to Microsoft.AspNet.Mvc.Xml 2015-01-22 15:09:20 -08:00
KnownRouteValueConstraintTests.cs
Microsoft.AspNet.Mvc.Core.Test.kproj [cleanup] Update .gitignore and reset .kproj files 2015-01-21 22:03:23 -08:00
MockModelBinderProvider.cs
MockModelValidatorProviderProvider.cs
MockMvcOptionsAccessor.cs
MockScopedInstance.cs
MockValueProviderFactoryProvider.cs
MvcOptionsTests.cs
MvcRouteHandlerTests.cs
RequireHttpsAttributeTests.cs
ResponseCacheAttributeTest.cs
RouteConstraintProviderValuesTest.cs
RouteDataActionConstraintTest.cs
RouteDataActionConstraintValuesTest.cs
RouteTemplateProviderAttributesTest.cs
SerializableErrorWrapperTests.cs [Fixes#1792]Separate XML serializers to Microsoft.AspNet.Mvc.Xml 2015-01-22 15:09:20 -08:00
StaticAssemblyProvider.cs
StaticControllerModelBuilder.cs
TestController.cs
TestGlobalFilterProvider.cs
TypeHelperTest.cs
UrlHelperTest.cs Creating UrlUtility for IsLocalUrl, and cleaning up UrlHelper 2015-01-29 05:51:46 -08:00
ViewComponentTests.cs
ViewDataDictionaryOfTModelTest.cs
ViewDataDictionaryTest.cs
project.json [Fixes#1792]Separate XML serializers to Microsoft.AspNet.Mvc.Xml 2015-01-22 15:09:20 -08:00