Esempio n. 1
0
        public void IndexNoNulo()
        {
            PreguntasController preguntas = new PreguntasController();

            ViewResult result = preguntas.Index("00000001", "00000001", "00000001", "00000001") as ViewResult;

            Assert.IsNotNull(result);
        }
Esempio n. 2
0
        public void IndexNula()
        {
            PreguntasController preguntas = new PreguntasController();

            ViewResult result = preguntas.Index(null, null, null, null) as ViewResult;

            Assert.IsNotNull(result);
        }
Esempio n. 3
0
        public void TestIndexVacio()
        {
            PreguntasController preguntas = new PreguntasController();

            CurrentUser.clearSession();
            CurrentUser.setCurrentUser("*****@*****.**", "Superusuario", "0000000001", "0000000001");

            ViewResult result = preguntas.Index("", "", "", "") as ViewResult;

            Assert.IsNotNull(result);
        }
Esempio n. 4
0
        public void EstudianteIndex()
        {
            PreguntasController preguntas = new PreguntasController();

            CurrentUser.clearSession();
            CurrentUser.setCurrentUser("*****@*****.**", "Estudiante", "0000000001", "0000000001");

            ViewResult result = preguntas.Index("00000001", "00000001", "00000001", "00000001") as ViewResult;

            Assert.IsNull(result);
        }