System.Tests.DelegateTests.DynamicInvoke_ConvertNonMatchingTToNullable_ThrowsArgumentException C# (CSharp) Method

DynamicInvoke_ConvertNonMatchingTToNullable_ThrowsArgumentException() private method

        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));
        }
DelegateTests