[corlib] Update SecurityCriticalAttribute test for updated mobile API.
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Tue, 12 May 2015 11:09:00 +0000 (13:09 +0200)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Tue, 12 May 2015 11:14:32 +0000 (13:14 +0200)
mcs/class/corlib/Test/System.Security/SecurityCriticalAttributeTest.cs

index bd3b8706192f2227952faaacad7cbeaa5aa8db22..450d5ae719af6278900a1edb13478ba8bf5513e6 100644 (file)
@@ -76,11 +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 && !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);
-#endif
                        Assert.AreEqual (at, aua.ValidOn, "ValidOn");
                }
        }