Fix locale sensitive unit tests

This commit is contained in:
Ikebe Shodai 2018-08-11 02:53:52 +09:00
parent da1189e6f1
commit b78063d2d4
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