Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
        private static async Task TearDownTestAsync()
        {
            using (DatabaseWrapper)
            {
                await DatabaseWrapper.DropTableAsync(TableName);

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