public void FaqReturnsActionResult()
        {
            var homeController = new HomeController();

            var faq = homeController.Faq();

            Assert.IsType(typeof(ViewResult), faq);
        }
        public void AboutReturnsActionResult()
        {
            var homeController = new HomeController();

            var About = homeController.About();

            Assert.IsType(typeof (ViewResult), About);
        }
        public void JoinTest(string userType, string tag1, string tag2, string tag3, string expectedResult)
        {
            var homeController = new HomeController();

            var routes = new RouteCollection();
            var request = new Mock<HttpRequestBase>(MockBehavior.Strict);
            var response = new Mock<HttpResponseBase>(MockBehavior.Strict);

            var context = new Mock<HttpContextBase>(MockBehavior.Strict);
            context.SetupGet(x => x.Request).Returns(request.Object);
            context.SetupGet(x => x.Response).Returns(response.Object);

            homeController.ControllerContext = new ControllerContext(context.Object, new RouteData(), homeController);
            homeController.Url = new UrlHelper(new RequestContext(context.Object, new RouteData()), routes);

            var join = homeController.Join(userType, tag1, tag2, tag3) as RedirectResult;

            Assert.IsType(typeof (RedirectResult), join);

            Assert.Equal(join.Url, expectedResult);
        }