コード例 #1
0
        public void FAQAction_Passing_Id_Returns_Specific_View(string id, string expectedView)
        {
            //Act
            var controller = new FAQController();
            var result = controller.FAQ(id);

            //Assert
            result.AssertViewRendered().Equals(expectedView);
        }
コード例 #2
0
        public void FAQAction_Passing_CompletelyRandomId_Redirects()
        {
            //Act
            var controller = new FAQController();
            var result     = controller.FAQ("twitter");

            //Assert
            result.AssertActionRedirect();
        }
コード例 #3
0
        public void FAQAction_Passing_CompletelyRandomId_Redirects()
        {
            //Act
            var controller = new FAQController();
            var result = controller.FAQ("twitter");

            //Assert
            result.AssertActionRedirect();
        }
コード例 #4
0
        public void FAQAction_Passing_Id_Returns_Specific_View(string id, string expectedView)
        {
            //Act
            var controller = new FAQController();
            var result     = controller.FAQ(id);

            //Assert
            result.AssertViewRendered().Equals(expectedView);
        }