Пример #1
0
 public void ReadAsAsyncOfT_WhenContentParameterIsNull_Throws()
 {
     Assert.ThrowsArgumentNull(
         () => HttpContentExtensions.ReadAsAsync <string>(null, _emptyFormatterList),
         "content"
         );
 }
Пример #2
0
 public void ReadAsAsyncOfT_WhenFormattersParameterIsNull_Throws()
 {
     Assert.ThrowsArgumentNull(
         () => HttpContentExtensions.ReadAsAsync <string>(new StringContent(""), null),
         "formatters"
         );
 }
Пример #3
0
 public void ReadAsAsync_WhenTypeParameterIsNull_Throws()
 {
     Assert.ThrowsArgumentNull(
         () =>
         HttpContentExtensions.ReadAsAsync(
             new StringContent(""),
             null,
             _emptyFormatterList
             ),
         "type"
         );
 }