예제 #1
0
        public void TestIndexView()
        {
            AsignarFormulariosController controller = new AsignarFormulariosController();
            ViewResult result = controller.Index() as ViewResult;

            Assert.AreEqual("Index", result.ViewName);
        }
예제 #2
0
        public void TestControllerObtenerCarreras()
        {
            AsignarFormulariosController controller = new AsignarFormulariosController();
            ViewResult result = controller.ObtenerCarreras(0, 0, "") as ViewResult;  //anno, semestre, nombre de unidad academica

            Assert.IsNull(result);
        }
예제 #3
0
        public void TestIndexNotNull()
        {
            AsignarFormulariosController controller = new AsignarFormulariosController();
            ViewResult result = controller.Index() as ViewResult;

            Assert.IsNotNull(result);
        }
예제 #4
0
        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);
        }