public void BeginReadThrows() { var stream = new HttpResponseStream(Mock.Of <IHttpBodyControlFeature>(), new MockHttpResponseControl()); Assert.Throws <NotSupportedException>(() => stream.BeginRead(new byte[1], 0, 1, null, null)); }