public IClassifier GetClassifier(ITextBuffer textBuffer)
 {
     return(FindResultsClassifier
            ?? (FindResultsClassifier = new FindResultsClassifier(ClassificationRegistry, ClassificationFormatMapService)));
 }
        public void Setup()
        {
            var mockSearchTermClassification = new Mock<IClassificationType>();
            mockSearchTermClassification.Setup(c => c.IsOfType(OutputClassificationDefinitions.FindResultsSearchTerm)).
                Returns(true);

            var mockClassificationTypeRegistryService = new Mock<IClassificationTypeRegistryService>();
            mockClassificationTypeRegistryService
                .Setup(c => c.GetClassificationType(It.IsAny<string>()))
                .Returns((string classificationType) => new FakeClassificationType(classificationType));

            classifier = new FindResultsClassifier(mockClassificationTypeRegistryService.Object);
        }