public void Test_ObjectConversion_IConvertible_Null() { var convertible = new ConvertibleTest(TypeCode.Empty); var result = VariantConverter.ChangeType(convertible, VARENUM.VT_EMPTY); Assert.IsNull(result); }
public Type Test_ObjectConversion_IConvertible(VARENUM vt, TypeCode code) { var convertible = new ConvertibleTest(code); var result = VariantConverter.ChangeType(convertible, vt); return(result.GetType()); }