2004-03-22 Zoltan Varga <vargaz@freemail.hu>
authorZoltan Varga <vargaz@gmail.com>
Mon, 22 Mar 2004 15:51:54 +0000 (15:51 -0000)
committerZoltan Varga <vargaz@gmail.com>
Mon, 22 Mar 2004 15:51:54 +0000 (15:51 -0000)
* CustomAttributeBuilderTest.cs: Call GetCustomAttributes with false
so custom attributes on Object do not screw the results.

svn path=/trunk/mcs/; revision=24416

mcs/class/corlib/Test/System.Reflection.Emit/ChangeLog
mcs/class/corlib/Test/System.Reflection.Emit/CustomAttributeBuilderTest.cs

index 4de984424539f94edecdffbf825c0082ff6582b5..78b25c780ce62b33697ee5965dd218e1d7919c88 100644 (file)
@@ -1,3 +1,8 @@
+2004-03-22  Zoltan Varga  <vargaz@freemail.hu>
+
+       * CustomAttributeBuilderTest.cs: Call GetCustomAttributes with false
+       so custom attributes on Object do not screw the results.
+
 2004-03-15  Nick Drochak <ndrochak@ieee.org>
 
        * CustomAttributeBuilderTest.cs: Force test to pass if we are running
index 961ca9a449c50ce5059135ab53eb74a4d8374839..88de598e2dcd56382a5e1518c38017301777507b 100644 (file)
@@ -206,7 +206,7 @@ namespace MonoTests.System.Reflection.Emit
                        object testInstance = Activator.CreateInstance (myType);\r
 \r
                        //check the validity of the attribute associated with Print method \r
-                       object [] customAttrs = myType.GetCustomAttributes (true);\r
+                       object [] customAttrs = myType.GetCustomAttributes (false);\r
                        AssertEquals ("#TestType has exactly one attribute", customAttrs.Length, 1);\r
 \r
                        //Custom Attributes of TestType\r
@@ -265,7 +265,7 @@ namespace MonoTests.System.Reflection.Emit
                        object testInstance = Activator.CreateInstance (myType);\r
 \r
                        //check the validity of the attribute associated with Print method \r
-                       object [] customAttrs = myType.GetCustomAttributes (true);\r
+                       object [] customAttrs = myType.GetCustomAttributes (false);\r
                        AssertEquals ("#TestType has exactly one attribute", customAttrs.Length , 1);\r
 \r
                        //Custom Attributes of TestType\r
@@ -325,7 +325,7 @@ namespace MonoTests.System.Reflection.Emit
                        object testInstance = Activator.CreateInstance (myType);\r
 \r
                        //check the validity of the attribute associated with Print method \r
-                       object [] customAttrs = myType.GetCustomAttributes (true);\r
+                       object [] customAttrs = myType.GetCustomAttributes (false);\r
                        AssertEquals("#TestType has exactly one attribute",customAttrs.Length , 1);\r
 \r
                        //Custom Attributes of TestType\r