public void Existing() { var procName = ObjectName.Parse("APP.proc1"); AdminQuery.DropProcedure(procName); var exists = AdminQuery.Access().ObjectExists(DbObjectType.Routine, procName); Assert.IsFalse(exists); }
public void NotExisting_IfExistsClause() { var procName = ObjectName.Parse("APP.proc2"); Assert.DoesNotThrow(() => AdminQuery.DropProcedure(procName, true)); }
public void NotExisting() { var procName = ObjectName.Parse("APP.proc2"); Assert.Throws <ObjectNotFoundException>(() => AdminQuery.DropProcedure(procName)); }