コード例 #1
0
        public void Prueba_nuevo_Entregas()
        {
            AddEntrega a = new AddEntrega();

            a.coneccion = new Coneccion();

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

            Assert.IsTrue(a.Agregar_Carro(1));
        }
コード例 #2
0
        public void Prueba_nuevo_Entrega_fail()
        {
            AddEntrega a = new AddEntrega();

            a.coneccion = new Coneccion();

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

            Assert.IsFalse(a.Agregar_Carro(1));
        }
コード例 #3
0
        public void Prueba_ObtenerEntregas()
        {
            AddEntrega a = new AddEntrega();

            a.coneccion = new Coneccion();

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


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