コード例 #1
0
        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);
        }
コード例 #2
0
 public void ReportResult(IVsSearchTask pTask, IVsSearchItemResult pSearchItemResult)
 {
     pSearchItemResult.InvokeAction();
 }
コード例 #3
0
 public void ReportResults(IVsSearchTask pTask, uint dwResults, IVsSearchItemResult[] pSearchItemResults)
 {
 }
コード例 #4
0
 public void ReportResult(IVsSearchTask pTask, IVsSearchItemResult pSearchItemResult)
 {
     pSearchItemResult.InvokeAction();
 }
コード例 #5
0
 public SearchItemResultShim(IVsSearchItemResult searchItemResult)
 {
     this.searchItemResult = searchItemResult
                             ?? throw new ArgumentNullException(nameof(searchItemResult));
 }
コード例 #6
0
 public void ReportResult(IVsSearchTask pTask, IVsSearchItemResult pSearchItemResult)
 => this.searchCallback.AddItem(new SearchItemResultShim(pSearchItemResult));