private void RemoveExistingLinksOfGivenLinkTypeFromWorkItem(IConfigurationLinkItem linkConfiguration, IWorkItem workItem) { workItem.AddLinks( _adapter, new int[] { }, linkConfiguration.LinkValueType, true); InvalidateTestIfNotEqual(0, GetIdsOfLinksOfGivenLinkTypeFromWorkItem(linkConfiguration, workItem).Length, "workItem.AddLinks() did not deleted all links successfully."); }