Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2004-09-25 19:54:45 +0400
committerZoltan Varga <vargaz@gmail.com>2004-09-25 19:54:45 +0400
commit00195671e4b0fb37d6db556a52b5d0149591d9d6 (patch)
tree2a6a9fa73615811c9f4872da2ea1dd080c9aba00 /mcs/tests/test-254.cs
parente14280267ee404a5c410f398a44ee3dbecd3a3be (diff)
2004-09-25 Zoltan Varga <vargaz@freemail.hu>
* test-254.cs: Fix test so it runs under NET 2.0. svn path=/trunk/mcs/; revision=34390
Diffstat (limited to 'mcs/tests/test-254.cs')
-rw-r--r--mcs/tests/test-254.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/mcs/tests/test-254.cs b/mcs/tests/test-254.cs
index 2ccf6c9e6bd..156d2c01226 100644
--- a/mcs/tests/test-254.cs
+++ b/mcs/tests/test-254.cs
@@ -106,7 +106,10 @@ public class ClassMain
Assert (mi.GetParameters ()[0].GetCustomAttributes (true), false, 4);
Assert (mi.GetCustomAttributes (true), false, 5);
Assert (mi.ReturnTypeCustomAttributes.GetCustomAttributes (true), true, 6);
- Assert (typeof (test_delegate).GetCustomAttributes (false), false, 7);
+
+ /* Under net 2.0, SerializableAttribute is returned */
+ if (typeof (test_delegate).GetCustomAttributes (false).Length != 1)
+ Assert (typeof (test_delegate).GetCustomAttributes (false), false, 7);
PropertyInfo pi = typeof (Test_2).GetProperty ("Test");
Assert (pi.GetCustomAttributes (true), false, 31);