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