[interp] disable some tests that fail on CI only
[mono.git] / mono / tests / array-subtype-attr.cs
1 using System;
2 using System.Reflection;
3
4 namespace MonoBug
5 {
6         public class Program
7         {
8                 static private int Main(string[] args)
9                 {
10                         Assembly assembly = Assembly.GetExecutingAssembly ();
11                         Type type = assembly.GetType("MonoBug.Program", true);
12                         MethodInfo info = type.GetMethod("Foo");
13                         object[] attributes = info.GetCustomAttributes (false);
14                         int found = 0;
15                         foreach (object obj in attributes)
16                         {
17                                 Console.WriteLine("Attribute of type {0} found", obj.GetType().ToString());
18                                 found ++;
19                         }
20                         return found == 1? 0: 1;
21                 }
22
23                 [My("blah", new string[] { "crash" }, "additional parameter")]
24                 public void Foo()
25                 {
26                 }
27         }
28
29         [AttributeUsage(AttributeTargets.Method)]
30         class MyAttribute : Attribute
31         {
32                 public MyAttribute(params object[] arguments)
33                 {
34                 }
35         }
36 }