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