Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorSebastien Pouliot <sebastien@xamarin.com>2013-06-04 18:58:40 +0400
committerSebastien Pouliot <sebastien@xamarin.com>2013-06-04 18:58:40 +0400
commitf9ebdc56157a94aa8eda3fd41e33070eb48b4d31 (patch)
treefbde1b8a752756ff38977d9094ebd729aa96f1eb /mcs
parent013a38cfba34bc1f7a476f3d604a3288d5912e44 (diff)
Re-enable a test for the MOBILE profile (by ensuring the required method is not removed by the linker)
Diffstat (limited to 'mcs')
-rw-r--r--mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Call.cs7
1 files changed, 4 insertions, 3 deletions
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 cb4f58b31e0..128678f91f8 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
@@ -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"));
}