From b78063d2d4eab19d89bb3525981e6fe1a8a4da3e Mon Sep 17 00:00:00 2001 From: Ikebe Shodai Date: Sat, 11 Aug 2018 02:53:52 +0900 Subject: [PATCH] Fix locale sensitive unit tests --- .../ModelBinding/ParameterBinderTest.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/Microsoft.AspNetCore.Mvc.Core.Test/ModelBinding/ParameterBinderTest.cs b/test/Microsoft.AspNetCore.Mvc.Core.Test/ModelBinding/ParameterBinderTest.cs index 5b67a06b92..d82f37de92 100644 --- a/test/Microsoft.AspNetCore.Mvc.Core.Test/ModelBinding/ParameterBinderTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Core.Test/ModelBinding/ParameterBinderTest.cs @@ -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