Exemplo n.º 1
0
        public void TestWithTempFile()
        {
            SQLiteLib.createDB(@"new-test-3.db", false, false);
            bool isConnect = SQLiteLib.connect();

            Assert.AreEqual(true, isConnect);
        }
Exemplo n.º 2
0
        public void TestWithCreateDBEncryptJSONFileAndNoPassword()
        {
            SQLiteLib.createDB(@"new-test.db", true, true);
            bool isConnect = SQLiteLib.connect();

            Assert.AreEqual(true, isConnect);
        }
Exemplo n.º 3
0
        public void TestWithCreateDBNotEncryptJSONFileAndSetPassword()
        {
            SQLiteLib.createDB(@"new-test-2.db", "p@ssw0rd", true, false);
            bool isConnect = SQLiteLib.connect();

            Assert.AreEqual(true, isConnect);
        }
Exemplo n.º 4
0
        public void TestWithObject()
        {
            SQLiteConfig config = new SQLiteConfig();

            config.dataSource = @"test.db";
            bool isConnect = SQLiteLib.connect(config);

            Assert.AreEqual(true, isConnect);
        }
Exemplo n.º 5
0
        public void TestWithJsonFile()
        {
            SQLiteConfig config = new SQLiteConfig();

            config.dataSource = @"test.db";
            SQLiteConfigJson.save(config, true);
            bool isConnect = SQLiteLib.connect();

            Assert.AreEqual(true, isConnect);
        }