public void TestIndexView() { AsignarFormulariosController controller = new AsignarFormulariosController(); ViewResult result = controller.Index() as ViewResult; Assert.AreEqual("Index", result.ViewName); }
public void TestControllerObtenerCarreras() { AsignarFormulariosController controller = new AsignarFormulariosController(); ViewResult result = controller.ObtenerCarreras(0, 0, "") as ViewResult; //anno, semestre, nombre de unidad academica Assert.IsNull(result); }
public void TestIndexNotNull() { AsignarFormulariosController controller = new AsignarFormulariosController(); ViewResult result = controller.Index() as ViewResult; Assert.IsNotNull(result); }
public void TestObtenerCursos() { //Arrange AsignarFormulariosController asignar = new AsignarFormulariosController(); //Act IQueryable <Curso> lista = asignar.ObtenerCursos(null, null, "UC-023874", "SC-01234", null); //Assert Assert.IsNotNull(lista); }