public HttpProtocolFeatureCollectionTests() { var context = new Http2StreamContext { ServiceContext = new TestServiceContext(), ConnectionFeatures = new FeatureCollection(), TimeoutControl = Mock.Of <ITimeoutControl>(), Transport = Mock.Of <IDuplexPipe>(), ServerPeerSettings = new Http2PeerSettings(), ClientPeerSettings = new Http2PeerSettings(), }; _httpConnectionContext = context; _http1Connection = new TestHttp1Connection(context); _http1Connection.Reset(); _collection = _http1Connection; var http2Stream = new Http2Stream(context); http2Stream.Reset(); _http2Collection = http2Stream; }