public void RequestHeader_QueryResponse_Throws() { WebHeaderCollection w = new WebHeaderCollection(); w[HttpRequestHeader.Accept] = "text/json"; Assert.Throws<InvalidOperationException>(() => w[HttpResponseHeader.ContentLength]); }