Handle absense of ExecutionScope
authorRaja R Harinath <harinath@hurrynot.org>
Mon, 6 Jul 2009 19:21:33 +0000 (19:21 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Mon, 6 Jul 2009 19:21:33 +0000 (19:21 -0000)
* ExpressionTest.cs (ExpressionDelegateTarget) [NET_4_0]: Disable
check for ExecutionScope.
(GlobalsInSpace) [NET_4_0]: Disable.

svn path=/trunk/mcs/; revision=137444

mcs/class/System.Core/Test/System.Linq.Expressions/ChangeLog
mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest.cs

index c073bde33472e3fbd7be40931395a57263fdda40..3fc0edc80912b962d892e64c21689adefd6e992c 100644 (file)
@@ -1,3 +1,9 @@
+2009-07-07  Raja R Harinath  <harinath@hurrynot.org>
+
+       * ExpressionTest.cs (ExpressionDelegateTarget) [NET_4_0]: Disable
+       check for ExecutionScope.
+       (GlobalsInSpace) [NET_4_0]: Disable.
+
 2008-09-22  Jb Evain  <jbevain@novell.com>
 
        * ExpressionTest_TypeIs.cs: add test for bug #428309.
index 07629aabce277804f22ce33d73f27074eedd6027..200f5247d9c4cb93ac8fee4a574211f69a15d4c1 100644 (file)
@@ -189,7 +189,9 @@ namespace MonoTests.System.Linq.Expressions {
 
                        Assert.AreEqual (typeof (Func<string, string>), identity.GetType ());
                        Assert.IsNotNull (identity.Target);
+#if !NET_4_0
                        Assert.AreEqual (typeof (ExecutionScope), identity.Target.GetType ());
+#endif
                }
 
                class Foo {
@@ -205,6 +207,7 @@ namespace MonoTests.System.Linq.Expressions {
                        }
                }
 
+#if !NET_4_0
                [Test]
                [Category ("TargetJvmNotSupported")]
                public void GlobalsInScope ()
@@ -237,6 +240,7 @@ namespace MonoTests.System.Linq.Expressions {
 
                        Assert.AreEqual ("gazonk42", del ());
                }
+#endif
 
                [Test]
                public void SimpleHoistedParameter ()