30 references to AnnotatedSpans
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (1)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryParentheses\RemoveUnnecessaryExpressionParenthesesTests.cs (1)
2884var expectedSpans = workspace.Documents.First().AnnotatedSpans;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
ExtractMethod\ExtractMethodBase.cs (1)
165var namedSpans = testDocument.AnnotatedSpans;
Intents\IntentTestsBase.cs (1)
109var priorSelection = testDocument.AnnotatedSpans["priorSelection"].Single();
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryParentheses\RemoveUnnecessaryExpressionParenthesesTests.cs (1)
2884var expectedSpans = workspace.Documents.First().AnnotatedSpans;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (19)
AbstractCommandHandlerTestState.cs (1)
85if (cursorDocument.AnnotatedSpans.TryGetValue("Selection", out var selectionSpanList))
BracePairs\AbstractBracePairsTests.cs (1)
38var expected = workspace.Documents.Single().AnnotatedSpans;
CodeLens\AbstractCodeLensTest.cs (8)
23foreach (var annotatedDocument in workspace.Documents.Where(d => d.AnnotatedSpans.Any())) 27foreach (var annotatedSpan in annotatedDocument.AnnotatedSpans) 51foreach (var annotatedDocument in workspace.Documents.Where(d => d.AnnotatedSpans.Any())) 55foreach (var annotatedSpan in annotatedDocument.AnnotatedSpans) 77foreach (var annotatedDocument in workspace.Documents.Where(d => d.AnnotatedSpans.Any())) 81foreach (var annotatedSpan in annotatedDocument.AnnotatedSpans) 103foreach (var annotatedDocument in workspace.Documents.Where(d => d.AnnotatedSpans.Any())) 107foreach (var annotatedSpan in annotatedDocument.AnnotatedSpans)
KeywordHighlighting\AbstractKeywordHighlighterTests.cs (1)
48var cursorSpan = testDocument.AnnotatedSpans["Cursor"].Single();
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
437foreach (var (name, spans) in testDocument.AnnotatedSpans)
SpellCheck\AbstractSpellCheckFixerProviderTests.cs (1)
42var (replacement, span) = document.AnnotatedSpans.Single();
SpellCheck\AbstractSpellCheckSpanTests.cs (1)
26var annotations = workspace.Projects.Single().Documents.Single().AnnotatedSpans;
Structure\AbstractSyntaxStructureProviderTests.cs (1)
49var expectedRegions = expectedRegionData.Select(data => CreateBlockSpan(data, hostDocument.AnnotatedSpans)).ToArray();
TextStructureNavigation\AbstractTextStructureNavigationTests.cs (1)
37var annotatedSpans = document.AnnotatedSpans;
Workspaces\EditorTestWorkspace.cs (3)
277foreach (var (key, spans) in document.AnnotatedSpans) 360var documentWithSpan = baseDocuments.FirstOrDefault(d => d.AnnotatedSpans.ContainsKey(spanName)); 368var matchingSpan = documentWithSpan.AnnotatedSpans[spanName].Single();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
CodeGeneration\CodeGenerationTests.cs (1)
897var annotatedSpans = Workspace.Documents.Single().AnnotatedSpans[key];
InheritanceMargin\InheritanceMarginTests.cs (2)
101if (testHostDocument.AnnotatedSpans.TryGetValue(SearchAreaTag, out var spans) && spans.IsSingle()) 328var annotatedSpans = testHostDocument.AnnotatedSpans;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestHostDocument.cs (1)
122this.AnnotatedSpans.Add(namedSpanList);
Microsoft.VisualStudio.LanguageServices.UnitTests (3)
Venus\DocumentService_IntegrationTests.vb (2)
282If testDocument.AnnotatedSpans("Original").First() = span Then 319If testDocument.AnnotatedSpans("Original").First() = span Then
Venus\DocumentServiceTests.vb (1)
300Return document.AnnotatedSpans(spanName).First()