public void IndexNoNulo() { PreguntasController preguntas = new PreguntasController(); ViewResult result = preguntas.Index("00000001", "00000001", "00000001", "00000001") as ViewResult; Assert.IsNotNull(result); }
public void IndexNula() { PreguntasController preguntas = new PreguntasController(); ViewResult result = preguntas.Index(null, null, null, null) as ViewResult; Assert.IsNotNull(result); }
public void TestIndexVacio() { PreguntasController preguntas = new PreguntasController(); CurrentUser.clearSession(); CurrentUser.setCurrentUser("*****@*****.**", "Superusuario", "0000000001", "0000000001"); ViewResult result = preguntas.Index("", "", "", "") as ViewResult; Assert.IsNotNull(result); }
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); }