public void ShouldCompileStaticMethod() { MethodInfo method = typeof(MethodCompilerTest).GetMethod("TestStatic"); var action = MethodCompiler.CompileStaticMethodInvocation(method); action(null, new object[] { 1, DateTime.MaxValue, "test" }); }