public void DropReferencedTable() { var tableName = ObjectName.Parse("APP.test_table1"); Assert.Throws <DropTableViolationException>(() => AdminQuery.DropTable(tableName)); var exists = AdminQuery.Session.Access().TableExists(tableName); Assert.IsTrue(exists); }
public void DropNonReferencedTable() { var tableName = ObjectName.Parse("APP.test_table2"); AdminQuery.DropTable(tableName); var exists = AdminQuery.Session.Access().TableExists(tableName); Assert.IsFalse(exists); }
public void DropIfExists_TableNotExists() { var tableName = ObjectName.Parse("APP.test_table3"); AdminQuery.DropTable(tableName, true); var exists = AdminQuery.Session.Access().TableExists(tableName); Assert.IsFalse(exists); }