2010-05-31 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-21.cs
blobcd125497bbbc9696779eb076b97397bea096a5be
1 using System;
3 public class Blah {
5 public class Foo {
7 public Foo ()
9 Console.WriteLine ("Inside the Foo constructor now");
12 public int Bar (int i, int j)
14 Console.WriteLine ("The Bar method");
15 return i+j;
21 public static int Main ()
23 Foo f = new Foo ();
25 int j = f.Bar (2, 3);
26 Console.WriteLine ("Blah.Foo.Bar returned " + j);
28 if (j == 5)
29 return 0;
30 else
31 return 1;