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); }
public void FAQAction_Passing_CompletelyRandomId_Redirects() { //Act var controller = new FAQController(); var result = controller.FAQ("twitter"); //Assert result.AssertActionRedirect(); }