Ejemplo n.º 1
0
        public void RedirectToController()
        {
            var testee = new RedirectController();

            var result = testee.Redirect();

            result.Permanent.Should().BeFalse();
            result.Url.Should().Be("/Redirected/Index");
        }
    public void RedirectController_TopicRedirect_ReturnsRedirectResult() {

      var controller            = new RedirectController(_topicRepository);
      var result                = controller.Redirect(11110) as RedirectResult;

      controller.Dispose();

      Assert.IsNotNull(result);
      Assert.IsTrue(result.Permanent);
      Assert.AreEqual<string>("/Web/Web_1/Web_1_1/Web_1_1_1/", result.Url);

    }