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