示例#1
0
        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);
        }
示例#2
0
        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"));
        }
示例#3
0
        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);
        }