public void RegistroPrimerNombreVacio() { RegTable regTable = new RegTable(); UT_2 unitT2 = new UT_2(); //string NombreUsuario = "JuanGT"; //string PrimerNombre = "Juan"; //string Apellidos = "Guev Trodo"; //string Genero = "Masculino"; //string Email = "*****@*****.**"; //string Ciudad = "Santo Domingo"; //string NumTelefono = "8095542142"; //string ClaveAcceso = "juangt123"; //string Cedula = "40244144145"; Random cedulaNumber = new Random(); int carry = 0; bool i = true; int contador; int cedula = cedulaNumber.Next(100000, 9999999); if (i == true) { unitT2.Registrar("JuanT", "", "Guev Trodo", "Masculino", "*****@*****.**", "Santo Domingo", "8095542142", "juangt123", Convert.ToString(cedula)); contador = 0; } else { contador = 1; } Assert.AreEqual(carry, contador); }
public void LoginCamposValidos() { RegTable regTable = new RegTable(); UT_1 unitT1 = new UT_1(); int bcarry = 0; bool i = true; bool c = false; int bcontador; if (i == true) { unitT1.Logear("222", "222", ref c); bcontador = 0; } else { bcontador = 1; } Assert.IsTrue(c); }
public void RegistroNombreUsuarioVacio() { RegTable regTable = new RegTable(); UT_2 unitT2 = new UT_2(); Random cedulaNumber = new Random(); int carry = 0; bool i = true; int contador; int cedula = cedulaNumber.Next(1000000, 99999999); if (i == true) { unitT2.Registrar("", "Juan", "Guev Trodo", "Masculino", "*****@*****.**", "Santo Domingo", "8095542142", "juangt123", Convert.ToString(cedula)); contador = 0; } else { contador = 1; } Assert.AreEqual(carry, contador); }
public void RegistroCiudadVacio() { RegTable regTable = new RegTable(); UT_2 unitT2 = new UT_2(); Random cedulaNumber = new Random(); int carry = 0; bool i = true; int contador; int cedula = cedulaNumber.Next(10, 9999999); if (i == true) { unitT2.Registrar("JuanGTP", "Juan", "Gorsok Kav", "Masculino", "*****@*****.**", "", "8095542142", "juangt123", Convert.ToString(cedula)); contador = 0; } else { contador = 1; } Assert.AreEqual(carry, contador); }