public void DeleteDocLinkTest() { VerifyExists(); bool value = false; try { long id = Documents.GetId(_databasePath, Doc_Title, out _errOut); if (_errOut.Length > 0) { throw new Exception(_errOut); } VerifyDockLinkExists(id, _gunId); long linkId = Documents.GetDocLinkId(_databasePath, id, _gunId, out _errOut); if (_errOut.Length > 0) { throw new Exception(_errOut); } if (!Documents.DeleteDocLink(_databasePath, linkId, out _errOut)) { throw new Exception(_errOut); } value = true; } catch (Exception e) { Console.WriteLine(e); } General.HasTrueValue(value, _errOut); }