* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / System / Test / System.ComponentModel / standalone_tests / TypeDescriptorTest.cs
1 using System;\r
2 using System.ComponentModel;\r
3 using System.Web.UI.WebControls;\r
4 \r
5 \r
6 class Test {\r
7         static void DoTest () {\r
8                 for (int i=0; i<100000; i++) {\r
9                         TextBox tb = new TextBox ();\r
10                         TypeDescriptor.GetProperties (tb);\r
11                         tb.Dispose ();\r
12                 }\r
13         }\r
14 \r
15         static void Main(string[] args) {\r
16                 Console.WriteLine ("This test should normally take less than a second");\r
17                 DateTime start = DateTime.Now;\r
18                 DoTest ();\r
19                 TimeSpan ts = DateTime.Now - start;\r
20                 Console.Write ("Time spent: ");\r
21                 Console.WriteLine (ts.ToString());\r
22         }\r
23 }