Example #1
0
        public void HomeTest()
        {
            var id     = new Guid();
            var result = _perfilController.Index(id) as ViewResult;

            Assert.AreEqual("Index", result.ViewName);
        }
        public void TestIndexModel()
        {
            string esperado = "superusuario";

            this.Login(esperado);
            Usuario resultado = (controller.Index() as ViewResult).Model as Usuario;

            Assert.AreEqual(esperado, resultado.Matricula);
        }
Example #3
0
        public void Index()
        {
            // Arrange
            PerfilController controller = new PerfilController();

            // Act
            ViewResult result = controller.Index() as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }
Example #4
0
        public void Index_Filtrado()
        {
            string estado = "A";
            // Arrange
            PerfilController controller = new PerfilController();

            // Act
            ViewResult result = controller.Index(estado) as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }