Beispiel #1
0
        public void TestLlenarDGVInventario()
        {
            Llenar_tablas llenar    = new Llenar_tablas();
            DataGridView  dataGrid  = new DataGridView();
            DataTable     dataTable = llenar.GridView_inventario(dataGrid);
            DataRow       fila      = dataTable.Rows[0];

            Assert.IsNotNull(fila["id_producto"]);
            Assert.IsNotNull(fila["productos"]);
            Assert.IsNotNull(fila["presentaciones"]);
            Assert.IsNotNull(fila["categorias"]);
            Assert.IsNotNull(fila["inventario"]);
        }
Beispiel #2
0
        public void TestLlenarDGVProveedores()
        {
            Llenar_tablas llenar    = new Llenar_tablas();
            DataGridView  dataGrid  = new DataGridView();
            DataTable     dataTable = llenar.GridView_proveedores(dataGrid);
            DataRow       fila      = dataTable.Rows[0];

            Assert.IsNotNull(fila["id_proveedor"]);
            Assert.IsNotNull(fila["Nombre"]);
            Assert.IsNotNull(fila["Apellidos"]);
            Assert.IsNotNull(fila["Telefono"]);
            Assert.IsNotNull(fila["Correo"]);
            Assert.IsNotNull(fila["Direccion"]);
        }
Beispiel #3
0
        public void TestLlenarDGVEmpleados()
        {
            Llenar_tablas llenar    = new Llenar_tablas();
            DataGridView  dataGrid  = new DataGridView();
            DataTable     dataTable = llenar.GridView_empleados(dataGrid);
            DataRow       fila      = dataTable.Rows[0];

            Assert.IsNotNull(fila["id_empleado"]);
            Assert.IsNotNull(fila["Nombre"]);
            Assert.IsNotNull(fila["Apellido_p"]);
            Assert.IsNotNull(fila["Apellido_m"]);
            Assert.IsNotNull(fila["Fecha_registro"]);
            Assert.IsNotNull(fila["RFC"]);
            Assert.IsNotNull(fila["NSS"]);
        }
Beispiel #4
0
        public void TestLlenarDGVPedido()
        {
            Llenar_tablas llenar    = new Llenar_tablas();
            DataGridView  dataGrid  = new DataGridView();
            DataTable     dataTable = llenar.GridView_pedido(dataGrid);
            DataRow       fila      = dataTable.Rows[0];

            Assert.IsNotNull(fila["id_producto"]);
            Assert.IsNotNull(fila["productos"]);
            Assert.IsNotNull(fila["presentaciones"]);
            Assert.IsNotNull(fila["inventario"]);
            Assert.IsNotNull(fila["cantidad"]);
            Assert.IsNotNull(fila["paquetes"]);
            Assert.IsNotNull(fila["Precio_compra"]);
            Assert.IsNotNull(fila["Total_compra"]);
            Assert.IsNotNull(fila["Precio_venta"]);
            Assert.IsNotNull(fila["Total_venta"]);
            Assert.IsNotNull(fila["pedidos_productos"]);
        }