public void About() { // Arrange HomeController controller = new HomeController(); // Act ViewResult result = controller.About() as ViewResult; // Assert Assert.IsNotNull(result.Model); }
public void About() { // Arrange HomeController controller = new HomeController(); // Act ViewResult result = controller.About() as ViewResult; // Assert Assert.IsInstanceOfType(result.Model, typeof(AboutModel)); }
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.That(result, Is.Not.Null); }
public void About() { // Disponer HomeController controller = new HomeController(); // Actuar ViewResult result = controller.About() as ViewResult; // Declarar Assert.IsNotNull(result.Model); }