public void RutValido1() { var clase = new ValidacionClass(); var resp = clase.ValidaRut("13345477", "2"); Assert.AreEqual(true, resp); }
public void RutInvalido() { var clase = new ValidacionClass(); var resp = clase.ValidaRut("14356900", "5"); Assert.AreEqual(false, resp); }
public void RutValido2() { var clase = new ValidacionClass(); var resp = clase.ValidaRut("14356900", "4"); Assert.AreEqual(true, resp); }
public void RutErrorLargo() { Exception exception = null; try { var clase = new ValidacionClass(); var resp = clase.ValidaRut("", ""); } catch (Exception ex) { exception = ex; } if (exception != null) { Assert.AreEqual("Error largo", exception.Message); } }