Deveel.Data.SequenceFunctionTests.OnTearDown C# (CSharp) Method

OnTearDown() protected method

protected OnTearDown ( string testName, IQuery query ) : bool
testName string
query IQuery
return bool
        protected override bool OnTearDown(string testName, IQuery query)
        {
            query.Access().DropObject(DbObjectType.Sequence, ObjectName.Parse("APP.seq1"));

            if (testName.EndsWith("TableId")) {
                var tableName = ObjectName.Parse("APP.test_table");
                query.Access().DropAllTableConstraints(tableName);
                query.Access().DropObject(DbObjectType.Table, tableName);
            }

            return true;
        }