* Mono.Posix.dll.sources: Rename Mono.Posix to Mono.Unix.
[mono.git] / mcs / tests / test-287.cs
1 using System;
2 using System.Reflection;
3
4 static class StaticClass
5 {
6     const int Foo = 1;    
7     
8     public static string Name ()
9     {
10         return "OK";
11     }
12 }
13
14 public class MainClass
15 {
16     public static int Main ()
17     {
18         Type type = typeof (StaticClass);
19         if (!type.IsAbstract || !type.IsSealed) {
20             Console.WriteLine ("Is not abstract sealed");
21             return 1;
22         }
23         
24         if (type.GetConstructors ().Length > 0) {
25             Console.WriteLine ("Has constructor");
26             return 2;
27         }
28         
29         Console.WriteLine (StaticClass.Name ());
30         return 0;
31     }
32 }