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); }
private bool verificarExistenca(ClsNValidacion validacion) { bool result = validacion.existeCargo(error1, txtDescripcion, "Ya existe el Cargo"); return(!result); }