Re-enable a test for the MOBILE profile (by ensuring the required method is not remov...
authorSebastien Pouliot <sebastien@xamarin.com>
Tue, 4 Jun 2013 14:58:40 +0000 (10:58 -0400)
committerSebastien Pouliot <sebastien@xamarin.com>
Tue, 4 Jun 2013 14:58:40 +0000 (10:58 -0400)
mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Call.cs

index cb4f58b31e0f4a7d94f4d9e86d90f7761448b0cb..128678f91f8a96405de8e80c18c48305e1873850 100644 (file)
@@ -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"));
                }