do not check order sequence if option /order was not used
[mono.git] / mcs / tests / gtest-autoproperty-02.cs
1
2 // Tests static automatic properties
3 using System;
4
5 public class Test
6 {
7         private class A
8         {
9                 public static string B { get; set; }
10                 public static string C { get; private set; }
11                 public static void DoThings ()
12                 {
13                         C = "C";
14                 }
15         }
16         
17         public static string Foo { get; set; }
18         public static int Answer { get; private set; }
19         
20         static int Main ()
21         {
22                 Foo = "Bar";
23                 if (Foo != "Bar")
24                         return 1;
25                 
26                 Answer = 42;
27                 if (Answer != 42)
28                         return 2;
29                 
30                 A.B = "B";
31                 if (A.B != "B")
32                         return 3;
33                 
34                 A.DoThings();
35                 if (A.C != "C")
36                         return 4;
37                 
38                 return 0;
39         }
40 }