public void CompileStaticInvokerOnMethodWithoutReturnValue() { var nums = new[] { 2, 0, 1, 3 }; GetArrayReverseInvoker()(new object[] { nums }); Assert.Equal(new[] { 3, 1, 0, 2 }, nums); }
public void CompileStaticInvokerInvocationWithTooManyArguments() { var e = Assert.Throws <ArgumentException>(() => GetArrayReverseInvoker()(new object[2])); Assert.Equal("args", e.ParamName); }