New test.
[mono.git] / mcs / class / corlib / Test / System.Reflection.Emit / ConstructorBuilderTest.cs
index d5cadbd45a515956917e13dce407c72131bba240..2d380965e0b25ef4aa8c2a354a5470c74d1323af 100644 (file)
@@ -94,11 +94,14 @@ public class ConstructorBuilderTest : Assertion
        }
        
        [Test]
-       public void TestMethodHandle () {
+       [Category ("NotDotNet")]
+       public void TestMethodHandle ()
+       {
                ConstructorBuilder cb = genClass.DefineConstructor (
                         0, 0, new Type [0]);
 
                RuntimeMethodHandle handle = cb.MethodHandle;
+               // the previous line throws a NotSupportedException on MS 1.1 SP1
        }
 
        public void TestName () {
@@ -385,8 +388,7 @@ public class ConstructorBuilderTest : Assertion
                        try {
                                cb.AddDeclarativeSecurity (action, set);
                                Fail ();
-                       }
-                       catch (ArgumentException) {
+                       } catch (ArgumentOutOfRangeException) {
                        }
                }
        }