Example #1
0
        public void Should_set_redirect_location()
        {
            var result = new PermanentRedirectResult("test");

            result.ExecuteResult(_controllerContext);
            Assert.AreEqual("test", _controllerContext.HttpContext.Response.RedirectLocation);
        }
Example #2
0
        public void Should_set_status_code()
        {
            var result = new PermanentRedirectResult("test");

            result.ExecuteResult(_controllerContext);
            Assert.AreEqual(301, _controllerContext.HttpContext.Response.StatusCode);
        }
 public void Should_set_status_code()
 {
     var result = new PermanentRedirectResult("test");
     result.ExecuteResult(_controllerContext);
     Assert.AreEqual(301, _controllerContext.HttpContext.Response.StatusCode);
 }
 public void Should_set_redirect_location()
 {
     var result = new PermanentRedirectResult("test");
     result.ExecuteResult(_controllerContext);
     Assert.AreEqual("test", _controllerContext.HttpContext.Response.RedirectLocation);
 }