예제 #1
0
        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));
        }
예제 #2
0
        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));
        }