Merge pull request #8256 from SIkebe/fix-locale-sensitive-unit-tests

Fix locale sensitive unit tests
This commit is contained in:
Doug Bunting 2018-08-11 13:01:42 -07:00 committed by GitHub
commit 1cae9b2658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,7 @@ using Microsoft.AspNetCore.Mvc.DataAnnotations.Internal;
using Microsoft.AspNetCore.Mvc.Internal;
using Microsoft.AspNetCore.Mvc.ModelBinding.Metadata;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
using Microsoft.AspNetCore.Testing;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
@ -498,6 +499,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding
}
[Fact]
[ReplaceCulture]
public async Task BindModelAsync_ForParameter_UsesValidationFromActualModel_WhenDerivedModelIsSet()
{
// Arrange
@ -606,6 +608,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding
}
[Fact]
[ReplaceCulture]
public async Task BindModelAsync_ForProperty_UsesValidationFromActualModel_WhenDerivedModelIsSet()
{
// Arrange