public void SelectRow_WrongUsing() { SQLite3Query sqlite = new SQLite3Query(); Assert.IsTrue(sqlite.TestConnection(connectionString, true, false)); Assert.IsNull(sqlite.SelectRow("SELECT f1 FROM WrongTable;")); Assert.IsNull(sqlite.SelectRow("SELECT f1 FROM TestTable UNION ALL SELECT f1 FROM TestTable;")); }
public void SelectRow() { SQLite3Query sqlite = new SQLite3Query(); Assert.IsTrue(sqlite.TestConnection(connectionString, true, false)); Assert.IsNotNull(sqlite.SelectRow("SELECT f1 FROM TestTable;")); Assert.IsNotNull(sqlite.SelectRow("SELECT * FROM TestTable;", 0)); }