예제 #1
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));
        }
예제 #2
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));
        }
예제 #3
0
        public void Prueba_ObtenerCarro()
        {
            ADDCarro a = new ADDCarro();

            a.coneccion = new Coneccion();

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


            Assert.IsNotNull(a.getCarros());
        }