monotouch uses the real HttpWebRequest
[mcs.git] / tests / gtest-451.cs
blob5fd951737fefdaa355ff9575ed2fb17dbc8c2ac0
1 // Compiler options: -r:gtest-451-lib.dll -langversion:future
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;