public About ( ) : System.Web.Mvc.ActionResult | ||
Результат | System.Web.Mvc.ActionResult |
public void About() { var sut = new HomeController(); var result = sut.About() as ViewResult; Assert.IsNotNull(result); }
public void About() { // Arrange HomeController controller = new HomeController(new Subject()); // Act ViewResult result = controller.About() as ViewResult; // Assert Assert.AreEqual("Your RRW -3 application description page.", result.ViewBag.Message); }
public void About() { // Arrange HomeController controller = new HomeController(); // Act ViewResult result = controller.About() as ViewResult; // Assert Assert.IsNotNull(result); }