aspnetcore/test
Ryan Nowak b557ca55d9 Fix behavior of StartsWithPrefix
This undoes a behavior change introduced in
7b18d1d3f1.

The intent was to have ClearValidationState do the right thing for a case
where a collection was bound to the empty prefix, and then used again with
TryUpdateModel.

This change was implemented by saying that a key like "[0].Foo" is a match
for the prefix of "Foo". This isn't really right, and it's only
interesting for the ClearValidationState case.

The problem is that we don't know what the keys look like for a
collection. We can assume that they start with [0] but that's not really a
guarantee, it's a guess.

This change fixes the behavior of StartsWithModel, and move the
responsibility for this case back into ClearValidationState.

This change also removes the call to ClearValidationState from
TryUpdateModel. If you need this behavior, then call ClearValidationState
manually. Trying to bind and then re-bind a model object isn't really what
we intend.
2016-02-17 11:16:16 -08:00
..
Microsoft.AspNetCore.Mvc.Abstractions.Test Fix behavior of StartsWithPrefix 2016-02-17 11:16:16 -08:00
Microsoft.AspNetCore.Mvc.ApiExplorer.Test [Fixes 3961] Consider InputFormatter behavior when we can't read the charset 2016-02-05 10:42:36 -08:00
Microsoft.AspNetCore.Mvc.Core.Test Fix behavior of StartsWithPrefix 2016-02-17 11:16:16 -08:00
Microsoft.AspNetCore.Mvc.Cors.Test
Microsoft.AspNetCore.Mvc.DataAnnotations.Test
Microsoft.AspNetCore.Mvc.Formatters.Json.Test [Fixes #4051] Split OutputFormatter into OutputFormatter and TextOutputFormatter 2016-02-12 12:04:18 -08:00
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test
Microsoft.AspNetCore.Mvc.FunctionalTests Make AddControllersAsServices not overwrite existing IControllerTypeProvider 2016-02-17 10:14:31 -08:00
Microsoft.AspNetCore.Mvc.IntegrationTests [Fixes #3774] DataAnnotation validation ignored 2016-02-16 08:52:50 -08:00
Microsoft.AspNetCore.Mvc.Localization.Test
Microsoft.AspNetCore.Mvc.Razor.Host.Test
Microsoft.AspNetCore.Mvc.Razor.Test React to https://github.com/aspnet/Razor/pull/683 2016-02-10 16:53:33 -08:00
Microsoft.AspNetCore.Mvc.TagHelpers.Test [Fixes #4013] Added support for areas in 'a' and 'form' tag helpers 2016-02-12 17:08:17 -08:00
Microsoft.AspNetCore.Mvc.Test
Microsoft.AspNetCore.Mvc.TestCommon Fix project.json System.Runtime dependency. 2016-02-05 18:22:51 -08:00
Microsoft.AspNetCore.Mvc.TestDiagnosticListener.Sources Fix project.json System.Runtime dependency. 2016-02-05 18:22:51 -08:00
Microsoft.AspNetCore.Mvc.ViewFeatures.Test Move Antiforgery.GetHtml() to MVC as an extension 2016-02-04 13:08:38 -08:00
Microsoft.AspNetCore.Mvc.WebApiCompatShimTest Reference Microsoft.NETCore.Platforms where necessary. 2016-02-02 14:22:07 -08:00
WebSites Make AddControllersAsServices not overwrite existing IControllerTypeProvider 2016-02-17 10:14:31 -08:00