CanConvert() public method

Determines whether this type converter can convert values for the specified type.
public CanConvert ( Type type ) : bool
type System.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?)));
 }