Beispiel #1
0
        public void CanCreateDatabaseTest()
        {
            if (System.IO.File.Exists(Path))
            {
                System.IO.File.Delete(Path);
            }

            var conn = new SQLite.SQLiteAsyncConnection(Path);

            bool exists = System.IO.File.Exists(Path);

            Assert.AreEqual(true, exists, "Could not generate db");

            conn.CloseAsync();
        }
Beispiel #2
0
        public void CanCreateDatabaseTest()
        {
            if (System.IO.File.Exists(Path))
            {
                System.IO.File.Delete(Path);
            }

            SQLitePCL.Batteries_V2.Init();
            var db = new SQLite.SQLiteAsyncConnection(Path, true, EncryptionKey);

            bool exists = System.IO.File.Exists(Path);

            Assert.AreEqual(true, exists, "Could not generate db");

            db.CloseAsync();
        }