[System.Net.Http] HttpClient timeout range checks. Fixes #25755
[mono.git] / mcs / tests / test-189.cs
1 //
2 // Test to ensure proper overload resolution with params methods
3 //
4 // From bugs #46199 and #43367
5 // 
6 using System;
7
8 class MyTest {
9
10         public static int Main (String[] args)
11         {
12                 if (m (1, 2) != 0)
13                         return 1;
14
15                 MonoTest2 test = new MonoTest2 ();
16                 if (test.method1 ("some message", "some string") != 0)
17                         return 1;
18
19                 return 0;
20         }
21
22         public static int m(int a, double b)
23         {
24                 return 1;
25         }
26
27         public static int m(int x0, params int[] xr)
28         {
29                 return 0;
30         }
31 }
32
33 public class MonoTest
34 {   
35         public virtual int method1 (string message, params object[] args)
36         {
37                 return 1;
38         }
39
40         public void testmethod ()
41         {              
42                 method1 ("some message", "some string");
43         }
44 }
45        
46 public class MonoTest2 : MonoTest {
47
48         public override int method1 (string message, params object[] args)
49         {
50                 return 0;
51         }
52         
53         public void testmethod2 ()
54         {
55                 method1 ("some message ", "some string");
56         }
57 }