public About ( ) : System.Web.Mvc.ActionResult | ||
Résultat | System.Web.Mvc.ActionResult |
public void Should_return_a_view_for_the_about() { var controller = new HomeController(MockRepository.GenerateMock<ISharedSettings>()); var result = controller.About(); Assert.IsInstanceOfType(typeof (ViewResult), result); }
public void About() { // Arrange HomeController controller = new HomeController(); // Act ViewResult result = controller.About() as ViewResult; // Assert Assert.IsNotNull(result); }
public void About() { // Disponer HomeController controller = new HomeController(); // Actuar ViewResult result = controller.About() as ViewResult; // Declarar Assert.IsNotNull(result); }
public void About() { // Arrange HomeController controller = new HomeController(); // Act ViewResult result = controller.About() as ViewResult; // Assert Assert.AreEqual("Your application description page.", result.ViewBag.Message); }
public void About() { // Arrange HomeController controller = new HomeController(); // Act ViewResult result = controller.About() as ViewResult; // Assert Assert.AreEqual("Could not find anything to write into the About page.", result.ViewBag.Message); }