* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / corlib / Test / System / ExceptionCas.cs
index 39846a981d12f635f7083b3a723d84b50152b51b..b2c723e17d2b2f2a555189f3cd626e9add5b58dc 100644 (file)
@@ -45,6 +45,19 @@ namespace MonoCasTests.System {
                                Assert.Ignore ("SecurityManager.SecurityEnabled is OFF");
                }
 
+               // Partial Trust Tests - i.e. call "normal" unit with reduced privileges
+
+               [Test]
+               [PermissionSet (SecurityAction.Deny, Unrestricted = true)]
+               public void PartialTrust_DenyUnrestricted_Success ()
+               {
+                       MonoTests.System.ExceptionTest et = new MonoTests.System.ExceptionTest ();
+                       // call most (all but arguments checking) unit tests from ExceptionTest
+                       et.TestThrowOnBlockBoundaries ();
+                       et.InnerExceptionSource ();
+               }
+
+               // CAS tests
 
                [Test]
                public void NoRestriction ()