[corlib] Remove multiple appdomain support (AppDomain.CreateDomain, etc) from tvOS...
[mono.git] / mcs / class / corlib / Test / System / AppDomainCas.cs
index f260dd42b7d0d3687a1b737f2565cb832e220685..3516b040c389e7c5aa7f52224fb54f6fb400c1d4 100644 (file)
@@ -26,6 +26,8 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+#if MONO_FEATURE_MULTIPLE_APPDOMAINS
+
 using NUnit.Framework;
 
 using System;
@@ -118,7 +120,6 @@ namespace MonoCasTests.System {
                {
                        AppDomain.CreateDomain (null, null, null, null, false);
                }
-#if NET_2_0
                [Test]
                [SecurityPermission (SecurityAction.Deny, ControlAppDomain = true)]
                [ExpectedException (typeof (SecurityException))]
@@ -126,7 +127,6 @@ namespace MonoCasTests.System {
                {
                        AppDomain.CreateDomain (null, null, null, null, false, null, null);
                }
-#endif
 // see http://bugzilla.ximian.com/show_bug.cgi?id=74411
                [Category ("NotWorking")]
                [Test]
@@ -406,3 +406,5 @@ namespace MonoCasTests.System {
                }
        }
 }
+
+#endif // MONO_FEATURE_MULTIPLE_APPDOMAINS