Example #1
0
        public void ChangeData_CreateTable()
        {
            SQLite3Query sqlite = new SQLite3Query();

            Assert.IsTrue(sqlite.TestConnection(connectionString, true, false));
            if (sqlite.SelectTable("SELECT * FROM test;") != null)
            {
                sqlite.ChangeData(sqlDropTestTable);
            }
            Assert.GreaterOrEqual(0, sqlite.ChangeData(sqlTestTableStatement));
            Assert.IsNullOrEmpty(sqlite.LastOperationErrorMessage);
        }
Example #2
0
        public void ChangeData_CreateTable_WithoutInitialization()
        {
            SQLite3Query sqlite = new SQLite3Query();

            Assert.AreEqual(-1, sqlite.ChangeData(sqlTestTableStatement));
            Assert.IsNotNullOrEmpty(sqlite.LastOperationErrorMessage);
        }