[mono/tests] Fix out of tree build.
[mono-project.git] / mcs / tests / gtest-286.cs
blob5f47cf4603b6ab45d4eb840cec46cc6413027b7f
1 using System;
2 using System.Reflection;
4 public class TestAttribute : Attribute
6 public Type type;
8 public TestAttribute(Type type)
10 this.type = type;
14 class C<T>
16 [Test(typeof(C<string>))]
17 public static void Foo()
22 public class C
24 public static int Main ()
26 MethodInfo mi = typeof (C<>).GetMethod ("Foo");
27 object[] a = mi.GetCustomAttributes (false);
28 if (((TestAttribute)a[0]).type.ToString() != "C`1[System.String]")
29 return 1;
31 Console.WriteLine("OK");
32 return 0;