[System.Windows.Forms] Disable failing test
[mono-project.git] / mcs / tests / gtest-autoproperty-20.cs
blobb05fc17206255e6f0c0aa8e2a8116590276df228
1 using System;
3 namespace BrokenOverrideProperty
5 abstract class BaseClass
7 protected BaseClass (string text)
9 Whatever = text;
12 public virtual string Whatever { get; set; }
15 class DerivedClass : BaseClass
17 public string CalledValue;
19 public DerivedClass (string text) : base (text)
23 public override string Whatever {
24 get {
25 return "DerivedClass";
27 set {
28 CalledValue = value;
29 Console.WriteLine ("set called with {0}", value);
34 class MainClass
36 public static int Main ()
38 var klass = new DerivedClass ("test-value");
39 if (klass.CalledValue != "test-value")
40 return 1;
42 return 0;