Make the test input a bit more reasonable (#11067)
This commit is contained in:
parent
147f5afb1e
commit
1ffc2351b8
|
|
@ -344,14 +344,13 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders
|
||||||
|
|
||||||
[Theory]
|
[Theory]
|
||||||
[MemberData(nameof(ConvertibleTypeData))]
|
[MemberData(nameof(ConvertibleTypeData))]
|
||||||
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2626", FlakyOn.AzP.Linux)]
|
|
||||||
public async Task BindModel_ReturnsModel_IfAttemptedValueIsValid_FrenchThirtyTwoThousandPointOne(Type destinationType)
|
public async Task BindModel_ReturnsModel_IfAttemptedValueIsValid_FrenchThirtyTwoThousandPointOne(Type destinationType)
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
var bindingContext = GetBindingContext(destinationType);
|
var bindingContext = GetBindingContext(destinationType);
|
||||||
bindingContext.ValueProvider = new SimpleValueProvider(new CultureInfo("fr-FR"))
|
bindingContext.ValueProvider = new SimpleValueProvider(new CultureInfo("fr-FR"))
|
||||||
{
|
{
|
||||||
{ "theModelName", "32 000,1" }
|
{ "theModelName", "32000,1" }
|
||||||
};
|
};
|
||||||
var binder = GetBinder();
|
var binder = GetBinder();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue