Example #1
0
        public void Prueba_nuevo_Carro_fail()
        {
            ADDCarro a = new ADDCarro();

            a.coneccion = new Coneccion();

            a.coneccion.SetCadena("data source = Otra vez falle; initial catalog = Taller; integrated security = True;");

            Assert.IsFalse(a.Agregar_Carro("451jkl", "2222222", "Negro", "supra", 2009, 1, 1));
        }
Example #2
0
        public void Prueba_nuevo_Carror()
        {
            ADDCarro a = new ADDCarro();

            a.coneccion = new Coneccion();

            a.coneccion.SetCadena("data source = LAPTOP-IFGR27P8; initial catalog = Taller; integrated security = True;");

            Assert.IsTrue(a.Agregar_Carro("451jkl", "2222222", "Negro", "Supra", 2009, 1, 1));
        }