示例#1
0
        public async Task DropTableTest()
        {
            var tableName = "testingTable" + HelperObjectFactory.GetRandomInt(0);

            DatabaseWrapper.ExecuteSql($"CREATE TABLE {tableName}(a,b);");

            await DatabaseWrapper.DropTableAsync(tableName);

            Assert.IsFalse(DatabaseWrapper.TableExists(tableName));
        }
示例#2
0
        private static async Task TearDownTestAsync()
        {
            using (DatabaseWrapper)
            {
                await DatabaseWrapper.DropTableAsync(TableName);

                DatabaseWrapper.Close();
                DatabaseWrapper.Destroy(DBPath);
            }
        }