2 // This test is used to test the `base' implementation
7 public int b_int_field;
8 public string b_string_field;
10 public const int b_const_three = 3;
12 public int b_int_property {
22 public string b_get_id ()
30 b_string_field = "base";
34 class Derived : Base {
36 new string b_string_field;
37 new const int b_const_three = 4;
39 new int b_int_property {
54 b_string_field = "derived";
59 if (b_int_field != 10)
61 if (base.b_int_field != 1)
63 if (base.b_string_field != "base")
65 if (b_string_field != "derived")
67 base.b_int_property = 4;
68 if (b_int_property != 10)
70 if (b_int_property != 10)
72 if (base.b_int_property != 4)
74 if (b_const_three != 4)
76 if (Base.b_const_three != 3)
78 System.Console.WriteLine ("All tests pass");
86 Derived d = new Derived ();