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; }
private static LocationTagger CreateTestSubject(ITextBuffer buffer, IIssueLocationStore store) => new LocationTagger(buffer, store, Mock.Of <IIssueSpanCalculator>(), Mock.Of <ILogger>());
private static void CheckStoreRefreshWasCalled(IIssueLocationStore store, params string[] expectedFilePaths) { var storeMock = ((IMocked <IIssueLocationStore>)store).Mock; storeMock.Verify(x => x.Refresh(expectedFilePaths), Times.Once); }