public void CanConvertTo_DestinationTypeIsString_ReturnsTrue() { // Setup var converter = new NullableEnumConverter(typeof(SimpleEnum?)); // Call bool canConvert = converter.CanConvertTo(typeof(string)); // Assert Assert.IsTrue(canConvert); }
public void CanConvertTo_DestinationTypeIsInvalid_ReturnsFalse() { // Setup var converter = new NullableEnumConverter(typeof(SimpleEnum?)); // Call bool canConvert = converter.CanConvertTo(typeof(NotSupportedType)); // Assert Assert.IsFalse(canConvert); }