Renaming IsCompatibleObject to IsCompatibleWith to match definition

This commit is contained in:
Pranav K 2014-03-10 17:13:53 -07:00
parent 86f18f5da7
commit 9132d32fa4
1 changed files with 3 additions and 3 deletions

View File

@ -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);