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)); }
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)); }
public static void HttpClientUrlTemplateExtensions_CreateRequestMessage_Generic_Args() { Assert.Throws <ArgumentNullException>(() => HttpClientUrlTemplateExtensions .CreateRequestMessage(null, HttpMethod.Delete, s_genericTemplate, default)); Assert.Throws <ArgumentNullException>(() => HttpClientUrlTemplateExtensions .CreateRequestMessage(new HttpClient(), null, s_genericTemplate, default)); Assert.Throws <ArgumentNullException>(() => HttpClientUrlTemplateExtensions .CreateRequestMessage(new HttpClient(), HttpMethod.Delete, default(UrlTemplate <Data>), default)); }
public static void HttpClientUrlTemplateExtensions_CreateRequestMessage_Boxed_Args() { Assert.Throws <ArgumentNullException>(() => HttpClientUrlTemplateExtensions .CreateRequestMessage(null, HttpMethod.Delete, s_boxedTemplate, null)); Assert.Throws <ArgumentNullException>(() => HttpClientUrlTemplateExtensions .CreateRequestMessage(new HttpClient(), null, s_boxedTemplate, null)); Assert.Throws <ArgumentNullException>(() => HttpClientUrlTemplateExtensions .CreateRequestMessage(new HttpClient(), HttpMethod.Delete, default(UrlTemplate), null)); }