public void IndexNotNull() { AccionDeMejoraController accion = new AccionDeMejoraController(); var indexResult = accion.Index(); Assert.IsNotNull(indexResult); }
public void IndexName() { var accion = new AccionDeMejoraController(); var indexResult = accion.Index() as ViewResult; Assert.AreEqual("Index", indexResult.ViewName); accion.Dispose(); }
public void TestMethod1() { HttpContext context = System.Web.HttpContext.Current; // Arrange var controller = new AccionDeMejoraController(); // Act ViewResult result = controller.Index() as ViewResult; // Assert Assert.IsNotNull(result); }