From 9132d32fa46772276f9cc4f47038514ea1a1724a Mon Sep 17 00:00:00 2001 From: Pranav K Date: Mon, 10 Mar 2014 17:13:53 -0700 Subject: [PATCH] Renaming IsCompatibleObject to IsCompatibleWith to match definition --- .../Internal/TypeExtensionTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Internal/TypeExtensionTests.cs b/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Internal/TypeExtensionTests.cs index d083e0d39e..d0e95bb1df 100644 --- a/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Internal/TypeExtensionTests.cs +++ b/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Internal/TypeExtensionTests.cs @@ -13,7 +13,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Internal.Test public void IsCompatibleWithReturnsFalse_IfValueTypeIsNull(Type type) { // Act - bool result = TypeExtensions.IsCompatibleObject(type, value: null); + bool result = TypeExtensions.IsCompatibleWith(type, value: null); // Assert Assert.False(result); @@ -26,7 +26,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Internal.Test public void IsCompatibleWithReturnsFalse_IfValueIsMismatched(Type type) { // Act - bool result = TypeExtensions.IsCompatibleObject(type, value: "Hello world"); + bool result = TypeExtensions.IsCompatibleWith(type, value: "Hello world"); // Assert Assert.False(result); @@ -54,7 +54,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Internal.Test public void IsCompatibleWithReturnsTrue_IfValueIsAssignable(Type type, object value) { // Act - bool result = TypeExtensions.IsCompatibleObject(type, value); + bool result = TypeExtensions.IsCompatibleWith(type, value); // Assert Assert.True(result);