Esempio n. 1
0
 public static void HttpClientUrlTemplateExtensions_GetAsync_Generic_Args()
 {
     Assert.ThrowsAsync <ArgumentNullException>(() => HttpClientUrlTemplateExtensions
                                                .GetAsync(null, s_genericTemplate, default));
     Assert.ThrowsAsync <ArgumentNullException>(() => HttpClientUrlTemplateExtensions
                                                .GetAsync(new HttpClient(), default(UrlTemplate <Data>), default));
 }
Esempio n. 2
0
 public static void HttpClientUrlTemplateExtensions_GetAsync_Boxed_Args()
 {
     Assert.ThrowsAsync <ArgumentNullException>(() => HttpClientUrlTemplateExtensions
                                                .GetAsync(null, s_boxedTemplate, null));
     Assert.ThrowsAsync <ArgumentNullException>(() => HttpClientUrlTemplateExtensions
                                                .GetAsync(new HttpClient(), default(UrlTemplate), null));
 }