Example #1
0
        public void CantidadCaracteresTest()
        {
            Validadores unValidador  = new Validadores();
            var         valorRetorno = unValidador.CantidadCaracteres("Abcde", 1, 3);

            Assert.IsFalse(valorRetorno);
        }
Example #2
0
 private void text_NCF_KeyPress(object sender, KeyPressEventArgs e)
 {
     e.Handled = Validadores.CantidadCaracteres(e, text_NCF.Text, 11);
     Validadores.EnterPress_TabyValidar(e, "0123456789ABCDEFG\b");
 }
Example #3
0
 private void tbx_RNC_KeyPress(object sender, KeyPressEventArgs e)
 {
     e.Handled = Validadores.CantidadCaracteres(e, tbx_RNC.Text, 9);
     Validadores.EnterPress_TabyValidar(e, "0123456789\b");
 }