public void TouchTestDB(string filename) { string dbfile = filename; string dir = Path.GetTempPath(); string path = Path.GetTempPath() + "\\" + dbfile; try { File.Delete(path); } catch (Exception) { // preperation } SQLiteClass.TouchDB(dir, path); }
public void CheckTableTest() { string dir = Path.GetTempPath(); string path = dir + "\\taskaludb3.sqlite"; try { File.Delete(path); } catch (Exception) { // preperation } var result = SQLiteClass.TouchDB(dir, path); Debug.Assert(SQLiteClass.CheckTable(path, "tasklist")); }
public void TouchDBTest() { string dir = Path.GetTempPath(); string path = dir + "\\taskaludb1.sqlite"; try { File.Delete(path); } catch (Exception) { // preperation fail Assert.Fail(); } var result = SQLiteClass.TouchDB(dir, path); Debug.Assert(result); }