2009-12-12 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git] / tests / test-703.cs
blobc3e65ca072828b27e8e120cf2916d834595c3758
1 using System;
3 public abstract class A
5 public abstract event EventHandler Finished;
6 public int count;
8 public A ()
12 public void test (A a)
14 a.Finished += TestA;
17 public void TestA (object sender, EventArgs e)
19 Console.WriteLine ("A test method.");
20 count += 3;
24 public class B : A
26 public override event EventHandler Finished;
28 public B ()
30 Finished += this.TestB;
31 this.test (this);
32 Finished (this, EventArgs.Empty);
35 public void TestB (object sender, EventArgs e)
37 Console.WriteLine ("B test method.");
38 count += 7;
41 public static int Main ()
43 return new B ().count - 10;