Renaming IsCompatibleObject to IsCompatibleWith to match definition
This commit is contained in:
parent
86f18f5da7
commit
9132d32fa4
|
|
@ -13,7 +13,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Internal.Test
|
||||||
public void IsCompatibleWithReturnsFalse_IfValueTypeIsNull(Type type)
|
public void IsCompatibleWithReturnsFalse_IfValueTypeIsNull(Type type)
|
||||||
{
|
{
|
||||||
// Act
|
// Act
|
||||||
bool result = TypeExtensions.IsCompatibleObject(type, value: null);
|
bool result = TypeExtensions.IsCompatibleWith(type, value: null);
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
Assert.False(result);
|
Assert.False(result);
|
||||||
|
|
@ -26,7 +26,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Internal.Test
|
||||||
public void IsCompatibleWithReturnsFalse_IfValueIsMismatched(Type type)
|
public void IsCompatibleWithReturnsFalse_IfValueIsMismatched(Type type)
|
||||||
{
|
{
|
||||||
// Act
|
// Act
|
||||||
bool result = TypeExtensions.IsCompatibleObject(type, value: "Hello world");
|
bool result = TypeExtensions.IsCompatibleWith(type, value: "Hello world");
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
Assert.False(result);
|
Assert.False(result);
|
||||||
|
|
@ -54,7 +54,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Internal.Test
|
||||||
public void IsCompatibleWithReturnsTrue_IfValueIsAssignable(Type type, object value)
|
public void IsCompatibleWithReturnsTrue_IfValueIsAssignable(Type type, object value)
|
||||||
{
|
{
|
||||||
// Act
|
// Act
|
||||||
bool result = TypeExtensions.IsCompatibleObject(type, value);
|
bool result = TypeExtensions.IsCompatibleWith(type, value);
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
Assert.True(result);
|
Assert.True(result);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue