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