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, null); _classifier.GetClassificationSpans(new SnapshotSpan()); _classifier.HighlightFindResults = true; }
public void GetClassificationSpansNullSnapShot() { _classifier.GetClassificationSpans(new SnapshotSpan()).Should().BeEmpty(); }