public void ShouldSupportHeadWithoutSubclassing() { var getResponse = new HttpRequest("GET", uri).GetResponse(); var headResponse = new HttpRequest("HEAD", uri).GetResponse(); Assert.That(headResponse.Body, Is.EqualTo("")); Assert.That(headResponse, HasSameHeaders.As(getResponse)); }
public void HeadShouldSendBackSameHeadersAsGetWithEmptyBody() { var getResponse = new HttpRequest("GET", uri).GetResponse(); var headResponse = new HttpRequest("HEAD", uri).GetResponse(); Assert.That(headResponse.Body, Is.EqualTo("")); Assert.That(headResponse, HasSameHeaders.As(getResponse)); }