From da2e4abe776e2f483917453c8863665ec2f4e810 Mon Sep 17 00:00:00 2001 From: Jb Evain Date: Mon, 21 Apr 2008 16:05:47 +0000 Subject: [PATCH] test for last Marek's issue svn path=/trunk/mcs/; revision=101335 --- .../ExpressionTest_Call.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Call.cs b/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Call.cs index 151682ff67d..19cf9fe9d00 100644 --- a/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Call.cs +++ b/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Call.cs @@ -217,5 +217,22 @@ namespace MonoTests.System.Linq.Expressions { var s = new EineStrukt ("foo"); Assert.AreEqual ("foo", foo (s)); } + + public static int OneStaticMethod () + { + return 42; + } + + [Test] + [Category ("NotWorking")] + public void CallStaticMethodOnNonSenseInstanceExpression () + { + var call = Expression.Lambda> ( + Expression.Call ( + Expression.Constant ("la la la"), + this.GetType ().GetMethod ("OneStaticMethod"))).Compile (); + + Assert.AreEqual (42, call ()); + } } } -- 2.25.1