Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BadImageFormatExceptionCas.cs: MS fixed this in 2.0 final (#71861).

svn path=/trunk/mcs/; revision=54359
  • Loading branch information...
commit 781310800874609d5225b8eebda2b7f73531ef08 1 parent 1e5d18f
Sebastien Pouliot authored
View
12 mcs/class/corlib/Test/System/BadImageFormatExceptionCas.cs
@@ -124,11 +124,7 @@ public void Throw_NoRestriction ()
[Test]
[PermissionSet (SecurityAction.Deny, Unrestricted = true)]
-#if NET_2_0
- [ExpectedException (typeof (BadImageFormatException))]
-#else
[ExpectedException (typeof (SecurityException))]
-#endif
public void Throw_FullRestriction ()
{
try {
@@ -147,11 +143,7 @@ public void Throw_FullRestriction ()
[Test]
[SecurityPermission (SecurityAction.Deny, ControlEvidence = true)]
-#if NET_2_0
- [ExpectedException (typeof (BadImageFormatException))]
-#else
[ExpectedException (typeof (SecurityException))]
-#endif
public void Throw_GetFusionLog_Fail_ControlEvidence ()
{
try {
@@ -165,11 +157,7 @@ public void Throw_GetFusionLog_Fail_ControlEvidence ()
[Test]
[SecurityPermission (SecurityAction.Deny, ControlPolicy = true)]
-#if NET_2_0
- [ExpectedException (typeof (BadImageFormatException))]
-#else
[ExpectedException (typeof (SecurityException))]
-#endif
public void Throw_GetFusionLog_Fail_ControlPolicy ()
{
try {
View
4 mcs/class/corlib/Test/System/ChangeLog
@@ -1,3 +1,7 @@
+2005-12-14 Sebastien Pouliot <sebastien@ximian.com>
+
+ * BadImageFormatExceptionCas.cs: MS fixed this in 2.0 final (#71861).
+
2005-12-13 Zoltan Varga <vargaz@gmail.com>
* ArrayTest.cs: Add regression test for #76973.
Please sign in to comment.
Something went wrong with that request. Please try again.