Пример #1
0
 public async Task ReadAsyncThrows()
 {
     var stream = new FrameResponseStream(Mock.Of <IHttpBodyControlFeature>(), new MockFrameControl());
     await Assert.ThrowsAsync <NotSupportedException>(() => stream.ReadAsync(new byte[1], 0, 1));
 }
 public async Task ReadAsyncThrows()
 {
     var stream = new FrameResponseStream();
     await Assert.ThrowsAsync <NotSupportedException>(() => stream.ReadAsync(new byte[1], 0, 1));
 }