Merge branch 'BigIntegerParse'
[mono.git] / mcs / class / System.Core / Test / System.Linq.Expressions / ExpressionTest_Call.cs
index cb4f58b31e0f4a7d94f4d9e86d90f7761448b0cb..e4cd69c59778a525e26c09bd89a2c4612a086061 100644 (file)
@@ -87,7 +87,7 @@ namespace MonoTests.System.Linq.Expressions {
                }
 
                [Test]
-#if NET_4_0 && !MONOTOUCH
+#if NET_4_0
                [ExpectedException (typeof (ArgumentException))]
 #else
                [ExpectedException (typeof (ArgumentNullException))]
@@ -98,12 +98,13 @@ namespace MonoTests.System.Linq.Expressions {
                }
 
                [Test]
-#if MOBILE
-               [Category ("NotWorking")] // String:Intern () is linked away
-#endif
                [ExpectedException (typeof (ArgumentException))]
                public void InstanceTypeDoesntMatchMethodDeclaringType ()
                {
+#if MOBILE
+                       // ensure that String.Intern won't be removed by the linker
+                       string s = String.Intern (String.Empty);
+#endif
                        Expression.Call (Expression.Constant (1), typeof (string).GetMethod ("Intern"));
                }
 
@@ -226,6 +227,7 @@ namespace MonoTests.System.Linq.Expressions {
                }
 
                [Test]
+               [Category ("NotWorkingInterpreter")]
                public void CallMethodOnStruct ()
                {
                        var param = Expression.Parameter (typeof (EineStrukt), "s");
@@ -262,6 +264,7 @@ namespace MonoTests.System.Linq.Expressions {
                }
 
                [Test]
+               [Category ("NotWorkingInterpreter")]
                public void CallStaticMethodWithRefParameter ()
                {
                        var p = Expression.Parameter (typeof (int), "i");
@@ -273,6 +276,7 @@ namespace MonoTests.System.Linq.Expressions {
                }
 
                [Test]
+               [Category ("NotWorkingInterpreter")]
                public void CallStaticMethodWithRefParameterAndOtherParameter ()
                {
                        var i = Expression.Parameter (typeof (int), "i");
@@ -309,6 +313,7 @@ namespace MonoTests.System.Linq.Expressions {
                }
 
                [Test]
+               [Category ("NotWorkingInterpreter")]
                public void Connect282729 ()
                {
                        // test from https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=282729
@@ -336,6 +341,7 @@ namespace MonoTests.System.Linq.Expressions {
 
                [Test]
                [Category ("NotWorking")]
+               [Category ("NotWorkingInterpreter")]
                public void Connect290278 ()
                {
                        // test from https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=290278
@@ -358,6 +364,7 @@ namespace MonoTests.System.Linq.Expressions {
                }
 
                [Test]
+               [Category ("NotWorkingInterpreter")]
                public void Connect297597 ()
                {
                        // test from https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=297597
@@ -374,9 +381,6 @@ namespace MonoTests.System.Linq.Expressions {
                }
 
                [Test]
-#if MONOTOUCH
-               [Category ("NotWorking")]
-#endif
                [Category ("NotDotNet")] // https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=319190
                public void Connect319190 ()
                {
@@ -394,6 +398,7 @@ namespace MonoTests.System.Linq.Expressions {
                }
 
                [Test]
+               [Category ("NotWorkingInterpreter")]
                public void Connect282702 ()
                {
                        var lambda = Expression.Lambda<Func<Func<int>>> (
@@ -483,9 +488,7 @@ namespace MonoTests.System.Linq.Expressions {
                }
 
                [Test]
-#if MONOTOUCH
-               [Category ("NotWorking")]
-#endif
+               [Category ("NotWorkingInterpreter")]
                public void CallNullableGetValueOrDefault () // #568989
                {
                        var value = Expression.Parameter (typeof (int?), "value");