2004-09-01 Marek Safar <marek.safar@seznam.cz>
[mono.git] / mcs / tests / test-287.cs
1 // TODO: add test of no constructor presence in the class when mono will support it
2
3 using System;
4 using System.Reflection;
5
6 static class StaticClass
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         Console.WriteLine (StaticClass.Name ());
25         return 0;
26     }
27 }