Exemple #1
0
        public void InsertTestRun()
        {
            var queries = Helpers.GetQueries(Properties.Resources.InsertTestQueries);

            Assert.AreEqual(4, queries.Length);

            using (var connection = Helpers.GetJetConnection())
            {
                connection.Open();
                DbDataReader reader;
                for (int index = 0; index < queries.Length - 1; index++)
                {
                    string query = queries[index];
                    reader = Helpers.Execute(connection, query);
                    if (reader != null)
                    {
                        reader.Dispose();
                    }
                }


                Helpers.Execute(connection, queries[3]);
            }
        }