Esempio n. 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));
        }
Esempio n. 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));
        }