[System.Net.Http] HttpClient timeout range checks. Fixes #25755
[mono.git] / mcs / tests / test-async-73.cs
1 using System.Threading.Tasks;
2 using System;
3
4 class X
5 {
6         static async Task<int> Foo ()
7         {
8                 var v = Throws ();
9
10                 try {
11                         await v;   
12                 } catch (Exception e) {
13                         return 0;
14                 }
15
16                 return 1;
17         }
18
19         static async Task<int> Throws ()
20         {
21                 throw new Exception ();
22         }
23
24         static int Main ()
25         {
26                 if (Foo ().Result != 0)
27                         return 1;
28
29                 return 0;
30         }
31 }