Disable more security context tests on mobile
[mono.git] / mcs / class / corlib / Test / System.Security / SecurityCriticalAttributeTest.cs
index 89bf0d9c625e8a0cb9e05bf8eaf67b845bebcf13..bd3b8706192f2227952faaacad7cbeaa5aa8db22 100644 (file)
@@ -35,7 +35,7 @@ namespace MonoTests.System.Security {
 
        [TestFixture]
        public class SecurityCriticalAttributeTest {
-
+#if !MOBILE
                [Test]
                public void Constructor_Default ()
                {
@@ -64,7 +64,7 @@ namespace MonoTests.System.Security {
                        SecurityCriticalAttribute sca = new SecurityCriticalAttribute (scs);
                        Assert.AreEqual (SecurityCriticalScope.Explicit, sca.Scope);
                }
-
+#endif
                [Test]
                public void Attributes ()
                {
@@ -76,7 +76,7 @@ namespace MonoTests.System.Security {
                        AttributeUsageAttribute aua = (AttributeUsageAttribute)attrs [0];
                        Assert.IsFalse (aua.AllowMultiple, "AllowMultiple");
                        Assert.IsFalse (aua.Inherited, "Inherited");
-#if NET_4_0
+#if NET_4_0 && !MOBILE
                        AttributeTargets at = (AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Delegate);
 #else
                        AttributeTargets at = (AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate);