CanConvert() public méthode

Returns true if the object type is (nullable) IJsonSerializable.
public CanConvert ( Type objectType ) : bool
objectType System.Type /// The object type to convert. ///
Résultat bool
        public void CanConvert_Null_IsFalse()
        {
            var converter = new QowaivJsonConverter();

            Assert.IsFalse(converter.CanConvert(null));
        }
        public void CanConvert_NullableBoolean_IsFalse()
        {
            var converter = new QowaivJsonConverter();

            Assert.IsFalse(converter.CanConvert(typeof(bool?)));
        }