예제 #1
0
 public static void HttpClientUrlTemplateExtensions_DeleteAsync_Generic_Args()
 {
     Assert.ThrowsAsync <ArgumentNullException>(() => HttpClientUrlTemplateExtensions
                                                .DeleteAsync(null, s_genericTemplate, default));
     Assert.ThrowsAsync <ArgumentNullException>(() => HttpClientUrlTemplateExtensions
                                                .DeleteAsync(new HttpClient(), default(UrlTemplate <Data>), default));
 }
예제 #2
0
 public static void HttpClientUrlTemplateExtensions_DeleteAsync_Boxed_Args()
 {
     Assert.ThrowsAsync <ArgumentNullException>(() => HttpClientUrlTemplateExtensions
                                                .DeleteAsync(null, s_boxedTemplate, null));
     Assert.ThrowsAsync <ArgumentNullException>(() => HttpClientUrlTemplateExtensions
                                                .DeleteAsync(new HttpClient(), default(UrlTemplate), null));
 }