Beispiel #1
0
        public void testExisteCargo_returnFalse()
        {
            ClsNValidacion obj = ClsNValidacion.getValidacion();
            ErrorProvider  err = new ErrorProvider();
            TextBox        txt = new TextBox();

            txt.Text = "--------";
            string mensaje = "Error";

            bool result = obj.existeCargo(err, txt, mensaje);

            Assert.IsFalse(result);
        }
Beispiel #2
0
        private bool verificarExistenca(ClsNValidacion validacion)
        {
            bool result = validacion.existeCargo(error1, txtDescripcion, "Ya existe el Cargo");

            return(!result);
        }