2010-05-13 Rodrigo Kumpera <rkumpera@novell.com>
[mono-project.git] / mcs / tests / gtest-optional-03.cs
blob845c2e8b2fad172786a2330359df8a27b20f750e
1 // Compiler options: -r:gtest-optional-03-lib.dll
3 using System;
5 class C
7 static int Test (int i = 1, string s = "", bool b = false, ushort u = 4)
9 return i;
12 public static int Main ()
14 if (Test () != 1)
15 return 1;
17 if (B.TestString () != "mono")
18 return 3;
20 if (B.TestString ("top") != "top")
21 return 4;
23 if (B.TestB () != null)
24 return 5;
26 if (B.Test<ushort> () != 0)
27 return 6;
29 if (B.TestDecimal (2) != decimal.MinValue)
30 return 7;
32 if (B.TestDecimal (2, 5) != 5)
33 return 8;
35 B b = new B ();
36 b [1] = 'z';
37 if (b [0] != 'h')
38 return 9;
40 B.TestNew ();
42 Console.WriteLine ("ok");
44 return 0;