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

DynamicInvoke_TypeDoesntExactlyMatchRefValueType_ThrowsArgumentException() private method

        public static void DynamicInvoke_TypeDoesntExactlyMatchRefValueType_ThrowsArgumentException()
        {
            Delegate d = new RefIntDelegate(RefIntMethod);
            Assert.Throws<ArgumentException>(null, () => d.DynamicInvoke((uint)7));
            Assert.Throws<ArgumentException>(null, () => d.DynamicInvoke(IntEnum.One));
        }
DelegateTests