private int NotifyTestFileAddRemove(int changedProjectCount, IVsProject[] changedProjects, string[] changedProjectItems, int[] rgFirstIndices, WatcherChangeTypes reason) { for (var index = 0; index < changedProjectCount; index++) { var projectItem = changedProjectItems[index]; var projectIndex = rgFirstIndices[index]; var project = changedProjects[projectIndex]; if (project != null) { TestFileChanged?.Invoke(this, new TestFileChangedEventArgs(projectItem, reason, project)); } } return(VSConstants.S_OK); }
/// <summary> /// Signs the the specified test file has been changed /// </summary> /// <param name="filename">Test file name</param> public void OnTestFileChanged(string filename) { TestFileChanged?.Invoke(this, new FileChangedEventArgs(filename)); }