From 728b96344d03c26f3a42b2273df4ceacf50a3e95 Mon Sep 17 00:00:00 2001 From: Javier Calvarro Nelson Date: Mon, 3 Jul 2017 12:47:51 -0700 Subject: [PATCH] [Fixes #6274] Fix and re-enable skiped test --- .../SimpleTypeModelBinderIntegrationTest.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/Microsoft.AspNetCore.Mvc.IntegrationTests/SimpleTypeModelBinderIntegrationTest.cs b/test/Microsoft.AspNetCore.Mvc.IntegrationTests/SimpleTypeModelBinderIntegrationTest.cs index db81815e0c..96d4fc1437 100644 --- a/test/Microsoft.AspNetCore.Mvc.IntegrationTests/SimpleTypeModelBinderIntegrationTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.IntegrationTests/SimpleTypeModelBinderIntegrationTest.cs @@ -396,13 +396,11 @@ namespace Microsoft.AspNetCore.Mvc.IntegrationTests Assert.Null(error.Exception); } - [Theory(Skip = "This test fails")] + [Theory] [InlineData(typeof(int?))] [InlineData(typeof(bool?))] [InlineData(typeof(string))] - [InlineData(typeof(object))] - [InlineData(typeof(IEnumerable))] - public async Task BindParameter_WithEmptyData_BindsMutableAndNullableObjects(Type parameterType) + public async Task BindParameter_WithEmptyData_BindsReferenceAndNullableObjects(Type parameterType) { // Arrange var parameterBinder = ModelBindingTestHelper.GetParameterBinder(); @@ -435,7 +433,7 @@ namespace Microsoft.AspNetCore.Mvc.IntegrationTests var key = Assert.Single(modelState.Keys); Assert.Equal("Parameter1", key); Assert.Equal(string.Empty, modelState[key].AttemptedValue); - Assert.Equal(new string[] { string.Empty }, modelState[key].RawValue); + Assert.Equal(string.Empty, modelState[key].RawValue); Assert.Empty(modelState[key].Errors); }