public CanConvert ( |
||
type | The type to check. | |
return | bool |
public void TrueShouldBeReturned() { // Although an exlicit type converter exists for enums, ObjectTypeConverter should not discriminate against any type. // This is so we don't have to modify it to ignore types for which there is a specific converter. var typeConverter = new ObjectTypeConverter(); Assert.True(typeConverter.CanConvert(typeof(Status))); }
public void TrueShouldBeReturned() { var typeConverter = new ObjectTypeConverter(); Assert.True(typeConverter.CanConvert(typeof(int?))); }