public void NuGetSearchProviderValidateCreateItemResult() { // Arrange Mock <OleMenuCommand> managePackageCommand = new Mock <OleMenuCommand>(null, null); Mock <OleMenuCommandService> menuCommandService = new Mock <OleMenuCommandService>(new Mock <IServiceProvider>().Object); NuGetSearchProvider searchProvider = new NuGetSearchProvider(menuCommandService.Object, managePackageCommand.Object, managePackageCommand.Object); IVsSearchItemResult result = null; // Act result = searchProvider.CreateItemResult(DummyText); // Assert Assert.Null(result); }
public void ReportResult(IVsSearchTask pTask, IVsSearchItemResult pSearchItemResult) { pSearchItemResult.InvokeAction(); }
public void ReportResults(IVsSearchTask pTask, uint dwResults, IVsSearchItemResult[] pSearchItemResults) { }
public SearchItemResultShim(IVsSearchItemResult searchItemResult) { this.searchItemResult = searchItemResult ?? throw new ArgumentNullException(nameof(searchItemResult)); }
public void ReportResult(IVsSearchTask pTask, IVsSearchItemResult pSearchItemResult) => this.searchCallback.AddItem(new SearchItemResultShim(pSearchItemResult));