public LocationTagger(ITextBuffer buffer, IIssueLocationStore locationService, IIssueSpanCalculator spanCalculator, ILogger logger)
        {
            this.buffer          = buffer;
            this.locationService = locationService;
            this.spanCalculator  = spanCalculator;
            this.logger          = logger;

            UpdateTags();

            locationService.IssuesChanged += OnIssuesChanged;
            buffer.ChangedLowPriority     += SafeOnBufferChange;
        }
Exemple #2
0
 private static LocationTagger CreateTestSubject(ITextBuffer buffer, IIssueLocationStore store) =>
 new LocationTagger(buffer, store, Mock.Of <IIssueSpanCalculator>(), Mock.Of <ILogger>());
Exemple #3
0
        private static void CheckStoreRefreshWasCalled(IIssueLocationStore store, params string[] expectedFilePaths)
        {
            var storeMock = ((IMocked <IIssueLocationStore>)store).Mock;

            storeMock.Verify(x => x.Refresh(expectedFilePaths), Times.Once);
        }