[System.Net.Http] HttpClient timeout range checks. Fixes #25755
[mono.git] / mcs / tests / test-769.cs
1 using System;
2 using System.Reflection;
3
4 public interface I
5 {
6         void Clear ();
7 }
8
9 public class C : I
10 {
11         public void Clear () { }
12         void I.Clear () { }
13
14         public static int Main ()
15         {
16                 var m1 = typeof (C).GetMethod ("Clear");
17                 Console.WriteLine (m1.Attributes);
18                 if (m1.Attributes != (MethodAttributes.Public | MethodAttributes.HideBySig))
19                         return 1;
20
21                 var m2 = typeof (C).GetMethod ("I.Clear", BindingFlags.NonPublic | BindingFlags.Instance);
22                 Console.WriteLine (m2.Attributes);
23                 if (m2.Attributes != (MethodAttributes.Private | MethodAttributes.HideBySig | MethodAttributes.Final | MethodAttributes.Virtual | MethodAttributes.VtableLayoutMask))
24                         return 2;
25
26                 return 0;
27         }
28 }