private DynamicInvoke_ConvertNonMatchingTToNullable_ThrowsArgumentException ( ) : void | ||
return | void |
public static void DynamicInvoke_ConvertNonMatchingTToNullable_ThrowsArgumentException()
{
Delegate d = new NullableDelegate(NullableMethod);
Assert.Throws<ArgumentException>(null, () => d.DynamicInvoke((short)7));
Assert.Throws<ArgumentException>(null, () => d.DynamicInvoke(IntEnum.Seven));
}