Merge pull request #943 from ermshiperete/bug-novell-325669
[mono.git] / mcs / class / corlib / Test / System.IO / FileNotFoundExceptionCas.cs
index 8142a91c515ce730905792c083d4199e2386d922..b85c1bdbf6f8c24de16108d6bf60db197e33bbb4 100644 (file)
@@ -125,11 +125,7 @@ namespace MonoCasTests.System.IO {
 
                [Test]
                [PermissionSet (SecurityAction.Deny, Unrestricted = true)]
-#if NET_2_0
-               [ExpectedException (typeof (FileNotFoundException))]
-#else
                [ExpectedException (typeof (SecurityException))]
-#endif
                public void Throw_FullRestriction ()
                {
                        try {
@@ -148,11 +144,7 @@ namespace MonoCasTests.System.IO {
 
                [Test]
                [SecurityPermission (SecurityAction.Deny, ControlEvidence = true)]
-#if NET_2_0
-               [ExpectedException (typeof (FileNotFoundException))]
-#else
                [ExpectedException (typeof (SecurityException))]
-#endif
                public void Throw_GetFusionLog_Fail_ControlEvidence ()
                {
                        try {
@@ -166,11 +158,7 @@ namespace MonoCasTests.System.IO {
 
                [Test]
                [SecurityPermission (SecurityAction.Deny, ControlPolicy = true)]
-#if NET_2_0
-               [ExpectedException (typeof (FileNotFoundException))]
-#else
                [ExpectedException (typeof (SecurityException))]
-#endif
                public void Throw_GetFusionLog_Fail_ControlPolicy ()
                {
                        try {