Beispiel #1
0
        public void AsRedirect_WithLocationUrl_ShouldReturnAResponseWithCorrectHeader()
        {
            var response = _factory.AsRedirect("http://google.com");

            Assert.That(response.Headers.Keys, Contains.Item("Location"));
            Assert.That(response.Headers["Location"], Is.EqualTo("http://google.com"));
        }