Esempio n. 1
0
 public async Task FlushAsyncThrows()
 {
     var stream = new HttpRequestStream(Mock.Of <IHttpBodyControlFeature>());
     await Assert.ThrowsAsync <NotSupportedException>(() => stream.FlushAsync());
 }
Esempio n. 2
0
 public async Task FlushAsyncDoesNotThrow()
 {
     var stream = new HttpRequestStream(Mock.Of <IHttpBodyControlFeature>(), new HttpRequestPipeReader());
     await stream.FlushAsync();
 }