CanConvert() public méthode

Determines whether this type converter can convert values for the specified type.
public CanConvert ( Type type ) : bool
type System.Type The type to check.
Résultat bool
 public void FalseShouldBeReturned()
 {
     var typeConverter = new EnumTypeConverter();
     Assert.False(typeConverter.CanConvert(typeof(int)));
 }
 public void TrueShouldBeReturned()
 {
     var typeConverter = new EnumTypeConverter();
     Assert.True(typeConverter.CanConvert(typeof(Int32EnumStatus?)));
 }