Sfoglia il codice sorgente

Handle absense of ExecutionScope

* ExpressionTest.cs (ExpressionDelegateTarget) [NET_4_0]: Disable
check for ExecutionScope.
(GlobalsInSpace) [NET_4_0]: Disable.

svn path=/trunk/mcs/; revision=137444
Raja R Harinath 16 anni fa
parent
commit
ff3044bb41

+ 6 - 0
mcs/class/System.Core/Test/System.Linq.Expressions/ChangeLog

@@ -1,3 +1,9 @@
+2009-07-07  Raja R Harinath  <[email protected]>
+
+	* ExpressionTest.cs (ExpressionDelegateTarget) [NET_4_0]: Disable
+	check for ExecutionScope.
+	(GlobalsInSpace) [NET_4_0]: Disable.
+
 2008-09-22  Jb Evain  <[email protected]>
 
 	* ExpressionTest_TypeIs.cs: add test for bug #428309.

+ 4 - 0
mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest.cs

@@ -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 ()