Author: zoltan
Date: 2005-04-16 11:55:36 -0400 (Sat, 16 Apr 2005)
New Revision: 43095

Modified:
   trunk/mcs/class/corlib/Test/System.Reflection.Emit/ChangeLog
   trunk/mcs/class/corlib/Test/System.Reflection.Emit/MethodBuilderTest.cs
Log:
2005-04-16  Zoltan Varga  <[EMAIL PROTECTED]>

        * MethodBuilderTest.cs: Add test for parameter attributes.


Modified: trunk/mcs/class/corlib/Test/System.Reflection.Emit/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.Reflection.Emit/ChangeLog        
2005-04-16 15:54:50 UTC (rev 43094)
+++ trunk/mcs/class/corlib/Test/System.Reflection.Emit/ChangeLog        
2005-04-16 15:55:36 UTC (rev 43095)
@@ -1,3 +1,7 @@
+2005-04-16  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * MethodBuilderTest.cs: Add test for parameter attributes.
+
 2005-03-24  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * MethodRentalCas.cs: New. CAS unit tests for MethodRental.

Modified: 
trunk/mcs/class/corlib/Test/System.Reflection.Emit/MethodBuilderTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.Reflection.Emit/MethodBuilderTest.cs     
2005-04-16 15:54:50 UTC (rev 43094)
+++ trunk/mcs/class/corlib/Test/System.Reflection.Emit/MethodBuilderTest.cs     
2005-04-16 15:55:36 UTC (rev 43095)
@@ -554,7 +554,7 @@
                MethodBuilder mb = genClass.DefineMethod (
                        mname, MethodAttributes.Public, typeof (void), 
                        new Type [] { typeof (int), typeof (string) });
-               ParameterBuilder pb = mb.DefineParameter (1, 0, "foo");
+               ParameterBuilder pb = mb.DefineParameter (1, 
ParameterAttributes.In, "foo");
                pb.SetConstant (52);
                pb.SetCustomAttribute (new CustomAttributeBuilder (typeof 
(ParamAttribute).GetConstructors () [0], new object [] { }));
                ParameterBuilder pb2 = mb.DefineParameter (2, 0, "bar");
@@ -566,6 +566,7 @@
                ParameterInfo[] pi = m.GetParameters ();
 
                AssertEquals ("foo", pi [0].Name);
+               AssertEquals (true, pi [0].IsIn);
                AssertEquals (52, pi [0].DefaultValue);
                object[] cattrs = pi [0].GetCustomAttributes (true);
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to