1 write to Documents
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace`1.cs (1)
88
this.
Documents
= [];
264 references to Documents
IdeBenchmarks (3)
FormatterBenchmarks.cs (2)
47
var document = workspace.CurrentSolution.GetDocument(workspace.
Documents
.First().Id);
60
var document = workspace.CurrentSolution.GetDocument(workspace.
Documents
.First().Id);
RegexClassifierBenchmarks.cs (1)
73
var document = workspace.CurrentSolution.GetDocument(workspace.
Documents
.First().Id);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (82)
AddMissingImports\CSharpAddMissingImportsRefactoringProviderTests.cs (1)
31
var hostDocument = workspace.
Documents
.First();
ChangeSignature\RemoveParametersTests.cs (1)
382
var textView = workspace.
Documents
.Single().GetTextView();
Classification\SemanticClassifierTests.cs (2)
37
var document = workspace.CurrentSolution.GetRequiredDocument(workspace.
Documents
.First().Id);
3919
var document = workspace.CurrentSolution.GetRequiredDocument(workspace.
Documents
.First().Id);
Classification\SyntacticTaggerTests.cs (2)
39
var document = workspace.
Documents
.First();
91
var document = workspace.
Documents
.First();
Classification\TotalClassifierTests.cs (3)
35
var document = workspace.CurrentSolution.GetRequiredDocument(workspace.
Documents
.First().Id);
3055
var document = workspace.
Documents
.First();
3157
var document = workspace.
Documents
.First();
CodeActions\MoveType\MoveTypeTests.MoveScope.cs (2)
917
var documentToModifyId = workspace.
Documents
[0].Id;
918
var textSpan = workspace.
Documents
[0].SelectedSpans[0];
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (5)
69
var oldDocument = workspace.
Documents
[0];
71
var expectedText = workspace.
Documents
[0].GetTextBuffer().CurrentSnapshot.GetText();
145
var project = workspace.
Documents
.Single(doc => !doc.SelectedSpans.IsEmpty()).Project;
155
var originalDocument = workspace.
Documents
.Single(doc => !doc.SelectedSpans.IsEmpty());
158
var refDocument = workspace.
Documents
.Where(doc => doc.Id != originalDocumentId).SingleOrDefault();
CommentSelection\CSharpCommentSelectionTests.cs (1)
131
var doc = workspace.
Documents
.First();
Completion\CompletionProviders\ObjectInitializerCompletionProviderTests.cs (2)
688
var hostDocument = workspace.
Documents
.Single();
1348
var hostDocument = workspace.
Documents
.Single();
Completion\CompletionProviders\OverrideCompletionProviderTests.cs (10)
2464
var testDocument = testWorkspace.
Documents
.Single(d => d.Name == "CSharpDocument");
2469
var documentId = testWorkspace.
Documents
.Single(d => d.Name == "CSharpDocument").Id;
2717
var testDocument = testWorkspace.
Documents
.Single(d => d.Name == "CSharpDocument2");
2722
var documentId = testWorkspace.
Documents
.Single(d => d.Name == "CSharpDocument2").Id;
2772
var testDocument = testWorkspace.
Documents
.Single(d => d.Name == "CSharpDocument");
2777
var documentId = testWorkspace.
Documents
.Single(d => d.Name == "CSharpDocument").Id;
3060
var testDocument = workspace.
Documents
.Single();
3195
var testDocument = workspace.
Documents
.First(d => d.Name == "CurrentDocument.cs");
3249
var testDocument = workspace.
Documents
.First(d => d.Name == "CurrentDocument.cs");
3265
var textBuffer = workspace.
Documents
.Single().GetTextBuffer();
Completion\CompletionProviders\SymbolCompletionProviderTests_NoInteractive.cs (1)
373
var testDocument = workspace.
Documents
.Single();
Debugging\LocationInfoGetterTests.cs (1)
26
var testDocument = workspace.
Documents
.Single();
Debugging\ProximityExpressionsGetterTests.cs (1)
72
var testDocument = workspace.
Documents
.Single();
EncapsulateField\EncapsulateFieldCommandHandlerTests.cs (1)
209
var textView = workspace.
Documents
.Single().GetTextView();
EncapsulateField\EncapsulateFieldTestState.cs (1)
34
_testDocument = Workspace.
Documents
.Single(d => d.CursorPosition.HasValue || d.SelectedSpans.Any());
ExtractInterface\ExtractInterfaceTests.cs (1)
1455
var textView = workspace.
Documents
.Single().GetTextView();
ExtractMethod\ExtractMethodBase.cs (6)
40
var testDocument = workspace.
Documents
.First();
51
var testDocument = workspace.
Documents
.Single();
74
var testDocument = workspace.
Documents
.Single();
87
var testDocument = workspace.
Documents
.Single();
160
var testDocument = workspace.
Documents
.Single();
188
var document = workspace.CurrentSolution.GetDocument(workspace.
Documents
.First().Id);
ExtractMethod\ExtractMethodMiscellaneousTests.cs (1)
135
var testDocument = workspace.
Documents
.Single();
ExtractMethod\ExtractMethodTests.cs (1)
11511
var textView = workspace.
Documents
.Single().GetTextView();
FixInterpolatedVerbatimString\FixInterpolatedVerbatimStringCommandHandlerTests.cs (5)
28
var document = workspace.
Documents
.Single();
36
var view = workspace.
Documents
.Single().GetTextView();
62
var view = workspace.
Documents
.Single().GetTextView();
80
var originalView = workspace.
Documents
.Single().GetTextView();
85
var view = workspace.
Documents
.Single().GetTextView();
Formatting\CodeCleanupTests.cs (3)
808
var hostdoc = workspace.
Documents
.Single();
825
var hostdoc = workspace.
Documents
.Single();
907
var hostdoc = workspace.
Documents
.Single();
Formatting\FormattingEngineTests.cs (2)
436
var subjectDocument = workspace.
Documents
.Single();
2946
var subjectDocument = workspace.
Documents
.Single();
Formatting\Indentation\CSharpFormatterTestsBase.cs (1)
119
var buffer = workspace.
Documents
.First().GetTextBuffer();
Formatting\Indentation\SmartIndenterEnterOnTokenTests.cs (2)
1401
var hostdoc = workspace.
Documents
.First();
1440
var hostdoc = workspace.
Documents
.First();
Formatting\Indentation\SmartIndenterTests.cs (3)
3460
var subjectDocument = workspace.
Documents
.Single();
3463
workspace.CreateProjectionBufferDocument(HtmlMarkup, workspace.
Documents
);
3545
var wpfTextView = workspace.
Documents
.First().GetTextView();
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (2)
3380
var subjectDocument = workspace.
Documents
.Single();
3414
var testDocument = workspace.
Documents
.Single();
Formatting\Indentation\SmartTokenFormatterFormatTokenTests.cs (1)
613
var buffer = workspace.
Documents
.First().GetTextBuffer();
Intents\IntentTestsBase.cs (1)
105
var testDocument = workspace.
Documents
.Single(d => d.Name == "test1.cs");
Interactive\BraceMatching\InteractiveBraceHighlightingTests.cs (4)
54
var buffer = workspace.
Documents
.First().GetTextBuffer();
82
var buffer = workspace.
Documents
.First().GetTextBuffer();
111
var buffer = workspace.
Documents
.First().GetTextBuffer();
167
var buffer = workspace.
Documents
.First().GetTextBuffer();
Interactive\NavigateTo\InteractiveNavigateToTests.cs (1)
624
assertDescription("File:", w.
Documents
.Single().Name);
LineSeparators\LineSeparatorTests.cs (1)
598
var document = workspace.CurrentSolution.GetRequiredDocument(workspace.
Documents
.First().Id);
MoveToNamespace\MoveToNamespaceTests.cs (1)
1456
foreach (var id in workspace.
Documents
.Select(d => d.Id))
NavigateTo\NavigateToTests.cs (1)
1014
assertDescription("File:", w.
Documents
.Single().Name);
Organizing\AbstractOrganizerTests.cs (1)
29
var document = workspace.CurrentSolution.GetDocument(workspace.
Documents
.First().Id);
Organizing\OrganizeTypeDeclarationTests.cs (1)
1182
var textView = workspace.
Documents
.Single().GetTextView();
QuickInfo\DiagnosticAnalyzerQuickInfoSourceTests.cs (1)
213
var testDocument = workspace.
Documents
.Single();
QuickInfo\SemanticQuickInfoSourceTests.cs (2)
130
var sourceDocument = workspace.
Documents
.Single(d => d.Name == "SourceDocument");
299
var sourceDocument = workspace.
Documents
.First(d => d.Name == "SourceDocument");
QuickInfo\SyntacticQuickInfoSourceTests.cs (1)
602
var testDocument = workspace.
Documents
.Single();
Rename\CSharpInlineRenameServiceTests.cs (1)
63
var documentId = workspace.
Documents
.Single().Id;
SplitStringLiteral\SplitStringLiteralCommandHandlerTests.cs (1)
61
var document = workspace.
Documents
.Single();
StringIndentation\StringIndentationTests.cs (1)
30
var document = workspace.CurrentSolution.GetRequiredDocument(workspace.
Documents
.First().Id);
TextStructureNavigation\TextStructureNavigatorTests.cs (1)
483
var buffer = workspace.
Documents
.First().GetTextBuffer();
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
862
var document = workspace.
Documents
.Single();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (60)
AbstractCommandHandlerTestState.cs (1)
77
var cursorDocument = Workspace.
Documents
.First(d => d.CursorPosition.HasValue || d.SelectedSpans.Any(ss => ss.IsEmpty));
AbstractTypingCommandHandlerTest.cs (1)
33
var testDocument = workspace.
Documents
.Single();
AutomaticCompletion\AbstractAutomaticBraceCompletionTests.cs (1)
149
var document = workspace.
Documents
.First();
AutomaticCompletion\AbstractAutomaticLineEnderTests.cs (3)
75
var view = workspace.
Documents
.Single().GetTextView();
76
var buffer = workspace.
Documents
.Single().GetTextBuffer();
82
view.Caret.MoveTo(new SnapshotPoint(buffer.CurrentSnapshot, workspace.
Documents
.Single(d => d.CursorPosition.HasValue).CursorPosition.Value));
BraceHighlighting\AbstractBraceHighlightingTests.cs (1)
43
var testDocument = workspace.
Documents
.First();
BraceMatching\AbstractBraceMatcherTests.cs (2)
26
var position = workspace.
Documents
.Single().CursorPosition.Value;
27
var document = workspace.CurrentSolution.GetDocument(workspace.
Documents
.First().Id);
BracePairs\AbstractBracePairsTests.cs (1)
38
var expected = workspace.
Documents
.Single().AnnotatedSpans;
CodeLens\AbstractCodeLensTest.cs (4)
23
foreach (var annotatedDocument in workspace.
Documents
.Where(d => d.AnnotatedSpans.Any()))
51
foreach (var annotatedDocument in workspace.
Documents
.Where(d => d.AnnotatedSpans.Any()))
77
foreach (var annotatedDocument in workspace.
Documents
.Where(d => d.AnnotatedSpans.Any()))
103
foreach (var annotatedDocument in workspace.
Documents
.Where(d => d.AnnotatedSpans.Any()))
CommentSelection\AbstractToggleCommentTestBase.cs (2)
37
var doc = workspace.
Documents
.First();
54
var document = workspace.CreateProjectionBufferDocument(surfaceBufferMarkup, workspace.
Documents
);
CompleteStatement\AbstractCompleteStatementTests.cs (1)
101
var testDocument = workspace.
Documents
.Single();
Completion\AbstractCompletionProviderTests.cs (7)
956
var position = testWorkspace.
Documents
.Single(d => d.Name == "SourceDocument").CursorPosition.Value;
958
var documentId = testWorkspace.
Documents
.Single(d => d.Name == "SourceDocument").Id;
1012
var position = testWorkspace.
Documents
.Single(d => d.Name == "SourceDocument").CursorPosition.Value;
1014
var documentId = testWorkspace.
Documents
.Single(d => d.Name == "SourceDocument").Id;
1041
var position = testWorkspace.
Documents
.First().CursorPosition.Value;
1043
var textContainer = testWorkspace.
Documents
.First().GetTextBuffer().AsTextContainer();
1272
Assert.Same(hostDocument, workspace.
Documents
.Single());
Debugging\AbstractDataTipInfoGetterTests.cs (1)
63
var testHostDocument = workspace.
Documents
.Single();
Diagnostics\GenerateType\GenerateTypeTestState.cs (1)
34
_testDocument = Workspace.
Documents
.SingleOrDefault(d => d.CursorPosition.HasValue);
DocumentationComments\AbstractDocumentationCommentTests.cs (1)
133
var testDocument = workspace.
Documents
.Single();
DocumentationComments\AbstractXmlTagCompletionTests.cs (1)
30
var testDocument = workspace.
Documents
.Single();
ExtractInterface\AbstractExtractInterfaceTests.cs (1)
110
Assert.False(testState.Workspace.
Documents
.Select(d => d.Id).Contains(result.NavigationDocumentId));
ExtractInterface\ExtractInterfaceTestState.cs (1)
58
_testDocument = Workspace.
Documents
.SingleOrDefault(d => d.CursorPosition.HasValue);
Formatting\CoreFormatterTestsBase.cs (6)
79
var document = workspace.
Documents
.First();
137
var testDocument = workspace.
Documents
.Single();
142
var buffer = workspace.
Documents
.First().GetTextBuffer();
180
var hostdoc = workspace.
Documents
.First();
244
var testDocument = workspace.
Documents
.Single();
249
var buffer = workspace.
Documents
.First().GetTextBuffer();
KeywordHighlighting\AbstractKeywordHighlighterTests.cs (1)
44
var testDocument = workspace.
Documents
.Single();
LanguageServer\AbstractLanguageServerProtocolTests.cs (2)
342
foreach (var document in workspace.
Documents
)
458
foreach (var testDocument in workspace.
Documents
)
ObsoleteSymbol\AbstractObsoleteSymbolTests.cs (1)
40
var expectedSpans = workspace.
Documents
[i].SelectedSpans.OrderBy(s => s.Start);
ReassignedVariable\AbstractReassignedVariableTests.cs (1)
39
var expectedSpans = workspace.
Documents
[i].SelectedSpans.OrderBy(s => s.Start);
SignatureHelp\AbstractSignatureHelpProviderTests.cs (6)
348
var cursorPosition = testWorkspace.
Documents
.First(d => d.Name == "SourceDocument").CursorPosition.Value;
349
var documentId = testWorkspace.
Documents
.First(d => d.Name == "SourceDocument").Id;
358
var selectedSpans = testWorkspace.
Documents
.First(d => d.Name == "SourceDocument").SelectedSpans;
467
var cursorPosition = testWorkspace.
Documents
.Single(d => d.Name == "SourceDocument").CursorPosition.Value;
468
var documentId = testWorkspace.
Documents
.Where(d => d.Name == "SourceDocument").Single().Id;
475
var selectedSpans = testWorkspace.
Documents
.Single(d => d.Name == "SourceDocument").SelectedSpans;
SpellCheck\AbstractSpellCheckFixerProviderTests.cs (1)
38
var document = workspace.
Documents
.Single();
Squiggles\SquiggleUtilities.cs (1)
38
var firstDocument = workspace.
Documents
.First();
Structure\AbstractSyntaxStructureProviderTests.cs (2)
45
var hostDocument = workspace.
Documents
.Single();
66
var hostDocument = workspace.
Documents
.Single();
TaskList\AbstractTaskListTests.cs (1)
34
var hostDocument = workspace.
Documents
.First();
TextStructureNavigation\AbstractTextStructureNavigationTests.cs (1)
27
var document = workspace.
Documents
.First();
Workspaces\EditorTestWorkspace.cs (1)
112
foreach (var document in
Documents
)
Workspaces\TestWorkspaceFixture.cs (6)
24
public EditorTestHostDocument CurrentDocument => _currentDocument ?? _workspace.
Documents
.Single();
43
_currentDocument = _workspace.
Documents
.First(d => d.CursorPosition.HasValue);
52
_currentDocument = workspace.
Documents
.Single();
80
var hostDocument = _currentDocument ?? (GetWorkspace()).
Documents
.Single();
107
if (_workspace?.
Documents
!= null)
109
foreach (var document in _workspace?.
Documents
)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (31)
CodeGeneration\CodeGenerationTests.cs (4)
885
var destSpan = Workspace.
Documents
.Single().SelectedSpans.Single();
891
var destSpan = Workspace.
Documents
.Single().SelectedSpans.Single();
897
var annotatedSpans = Workspace.
Documents
.Single().AnnotatedSpans[key];
918
var destSpan = Workspace.
Documents
.Single().SelectedSpans.Single();
Diagnostics\DiagnosticDataTests.cs (1)
219
var hostDocument = workspace.
Documents
.Single();
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (1)
65
var documentId = workspace.
Documents
[0].Id;
FindReferences\FindReferencesCommandHandlerTests.cs (1)
72
var textView = workspace.
Documents
[0].GetTextView();
InheritanceMargin\InheritanceMarginTests.cs (5)
58
var testHostDocument = testWorkspace.
Documents
[0];
87
var testHostDocument = testWorkspace.
Documents
[0];
211
var testHostDocument1 = testWorkspace.
Documents
.Single(doc => doc.Project.AssemblyName.Equals("Assembly1"));
212
var testHostDocument2 = testWorkspace.
Documents
.Single(doc => doc.Project.AssemblyName.Equals("Assembly2"));
327
foreach (var testHostDocument in testWorkspace.
Documents
)
LinkedFiles\LinkedFileDiffMergingEditorTests.cs (2)
77
var documentId = workspace.
Documents
.Single(d => !d.IsLinkFile).Id;
80
var linkedDocumentId = workspace.
Documents
.Single(d => d.IsLinkFile).Id;
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
310
var testDocument = Workspace.
Documents
.Single(d => d.FilePath == "SourceDocument");
RenameTracking\RenameTrackingTestState.cs (1)
82
HostDocument = Workspace.
Documents
.First();
Snippets\RoslynLSPSnippetConvertTests.cs (3)
402
var document = workspace.CurrentSolution.GetRequiredDocument(workspace.
Documents
.First().Id);
413
var document = workspace.CurrentSolution.GetRequiredDocument(workspace.
Documents
.First().Id);
495
var document = workspace.CurrentSolution.GetRequiredDocument(workspace.
Documents
.First().Id);
StackTraceExplorer\StackTraceExplorerTests.cs (1)
45
var cursorDoc = workspace.
Documents
.Single();
Structure\BlockStructureServiceTests.cs (1)
115
var hostDocument = workspace.
Documents
.First();
Structure\StructureTaggerTests.cs (1)
398
var hostdoc = workspace.
Documents
.First();
SymbolFinder\FindSymbolAtPositionTests.cs (2)
20
var position = workspace.
Documents
.Single(d => d.CursorPosition.HasValue).CursorPosition!.Value;
21
var document = workspace.CurrentSolution.GetRequiredDocument(workspace.
Documents
.Single().Id);
Tagging\AsynchronousTaggerTests.cs (5)
78
var document = workspace.
Documents
.First();
107
var document = workspace.
Documents
.First();
133
var document = workspace.
Documents
.First();
154
var testDocument = workspace.
Documents
.First();
210
var testDocument = workspace.
Documents
.First();
TextEditor\TryGetDocumentTests.cs (2)
25
var hostDocument = workspace.
Documents
.First();
53
var hostDocument = workspace.
Documents
.First();
Microsoft.CodeAnalysis.Features.Test.Utilities (2)
RelatedDocuments\AbstractRelatedDocumentsTests.cs (2)
28
var caretDocument = workspace.
Documents
.Single(d => d.CursorPosition.HasValue);
48
var expectedSortedResults = workspace.
Documents
.Where(d => d.SelectedSpans.Count > 0).Select(d => d.Id).OrderBy(d => d.Id);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (6)
Workspaces\TestWorkspace`1.cs (6)
243
=>
Documents
.Single(d => d.CursorPosition.HasValue && !d.IsLinkFile);
259
this.
Documents
.Add(doc);
309
if (!
Documents
.Contains(hostDocument) &&
320
=> this.
Documents
.FirstOrDefault(d => d.Id == documentId);
666
Documents
.Add(document);
675
Documents
.Add(submission.Documents.Single());
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (7)
CodeModel\AbstractFileCodeElementTests.cs (1)
91
return (GetWorkspace()).
Documents
.Single().GetTextBuffer().CurrentSnapshot.GetText();
DesignerAttribute\DesignerAttributeServiceTests.cs (1)
119
var hostDocument = workspace.
Documents
.First();
DocumentOutline\DocumentOutlineTestsBase.cs (3)
56
TextBuffer = workspace.
Documents
.Single().GetTextBuffer();
66
=> PathRoot + _workspace.
Documents
.Single().FilePath!;
101
foreach (var document in workspace.
Documents
)
F1Help\F1HelpTests.cs (2)
27
var caret = workspace.
Documents
.First().CursorPosition;
30
var actualText = await service.GetHelpTermAsync(workspace.CurrentSolution.Projects.First().Documents.First(), workspace.
Documents
.First().SelectedSpans.First(), CancellationToken.None);
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (3)
CallHierarchy\CallHierarchyTestState.vb (1)
87
Dim testDocument = workspace.
Documents
.Single(Function(d) d.CursorPosition.HasValue)
CodeModel\CodeModelTestHelpers.vb (2)
135
Dim cursorDocument = state.Workspace.
Documents
.First(Function(d) d.CursorPosition.HasValue)
144
Dim cursorPosition = state.Workspace.
Documents
.First(Function(d) d.CursorPosition.HasValue).CursorPosition.Value
Microsoft.VisualStudio.LanguageServices.UnitTests (70)
AbstractTextViewFilterTests.vb (7)
39
Dim doc = workspace.
Documents
.Single()
76
Dim doc = workspace.
Documents
.Single()
106
Dim doc = workspace.
Documents
.Single()
138
Dim doc = workspace.
Documents
.Single()
168
Dim doc = workspace.
Documents
.Single()
203
Dim doc = workspace.
Documents
.Single()
234
Dim doc = workspace.
Documents
.Single()
ChangeSignature\AddParameterViewModelTests.vb (1)
300
Dim doc = workspace.
Documents
.Single()
ChangeSignature\ChangeSignatureViewModelTests.vb (1)
460
Dim doc = workspace.
Documents
.Single()
CodeModel\AbstractEventCollectorTests.vb (2)
108
Dim codeDocument = workspace.CurrentSolution.GetDocument(workspace.
Documents
(0).Id)
111
Dim changeDocument = workspace.CurrentSolution.GetDocument(workspace.
Documents
(1).Id)
CodeModel\CSharp\FileCodeModelTests.vb (1)
1022
Dim changeDocument = changedWorkspace.CurrentSolution.GetDocument(changedWorkspace.
Documents
(0).Id)
CodeModel\CSharp\SyntaxNodeKeyTests.vb (1)
235
Dim cursorDocument = workspace.
Documents
.First(Function(d) d.CursorPosition.HasValue)
CodeModel\VisualBasic\FileCodeModelTests.vb (2)
1020
Dim changeDocument = changedworkspace.CurrentSolution.GetDocument(changedworkspace.
Documents
.First(Function(d) d.Name.Equals("File1.vb")).Id)
1036
changeDocument = changedworkspace.CurrentSolution.GetDocument(changedworkspace.
Documents
.First(Function(d) d.Name.Equals("File2.vb")).Id)
CommonControls\MemberSelectionViewModelTests.vb (1)
176
Dim doc = workspace.
Documents
.Single()
CommonControls\NewTypeDestinationSelectionViewModelTests.vb (1)
229
Dim doc = workspace.
Documents
.Single()
ExtractInterface\ExtractInterfaceViewModelTests.vb (1)
292
Dim doc = workspace.
Documents
.Single()
GenerateType\GenerateTypeViewModelTests.vb (1)
839
Dim testDoc = workspace.
Documents
.SingleOrDefault(Function(d) d.CursorPosition.HasValue)
GoToDefinition\GoToDefinitionApiTests.vb (1)
22
Dim cursorDocument = workspace.
Documents
.First(Function(d) d.CursorPosition.HasValue)
Help\HelpTests.vb (2)
19
Dim caret = workspace.
Documents
.First().CursorPosition
21
Assert.Equal(expected, Await service.GetHelpTermAsync(workspace.CurrentSolution.Projects.First().Documents.First(), workspace.
Documents
.First().SelectedSpans.First(), CancellationToken.None))
InheritanceMargin\InheritanceMarginViewModelTests.vb (1)
80
Dim testDocument = workspace.
Documents
.Single()
LanguageBlockTests.vb (2)
252
Dim hostDocument = workspace.
Documents
.Single()
270
Dim hostDocument = workspace.
Documents
.Single()
MoveStaticMembers\MoveStaticMembersViewModelTest.vb (1)
27
Dim doc = workspace.
Documents
.ElementAt(0)
Preview\PreviewChangesTests.vb (13)
38
Dim documentId = workspace.
Documents
.First().Id
42
Dim textChange = New TextChange(New TextSpan(workspace.
Documents
.First().CursorPosition.Value, 0), "insertion!")
91
Dim docId = workspace.
Documents
.First().Id
95
Dim textChange = New TextChange(New TextSpan(workspace.
Documents
.First().CursorPosition.Value, 0), "insertion!")
99
Dim removedDocumentId = workspace.
Documents
.Last().Id
133
Dim documentId = workspace.
Documents
.First().Id
137
Dim textChange = New TextChange(New TextSpan(workspace.
Documents
.First().CursorPosition.Value, 0), "insertion!")
186
Dim docId = workspace.
Documents
.First().Id
190
Dim textChange = New TextChange(New TextSpan(workspace.
Documents
.First().CursorPosition.Value, 0), "insertion!")
196
Dim removedDocumentId1 = workspace.
Documents
.ElementAt(1).Id
197
Dim removedDocumentId2 = workspace.
Documents
.ElementAt(2).Id
269
Dim documentId1 = workspace.
Documents
.Where(Function(d) d.Project.Name = "VBProj1").Single().Id
272
Dim documentId2 = workspace.
Documents
.Where(Function(d) d.Project.Name = "VBProj2").Single().Id
Progression\ProgressionTestState.vb (3)
30
Dim documentId = Workspace.
Documents
.Single(Function(d) d.FilePath = filePath).Id
36
Dim hostDocument As TestHostDocument = Workspace.
Documents
.Single(Function(d) d.CursorPosition.HasValue)
78
Dim hostDocument As TestHostDocument = Workspace.
Documents
.Single(Function(d) d.CursorPosition.HasValue)
PullMemberUp\PullMemberUpViewModelTest.vb (1)
248
Dim doc = workspace.
Documents
.Single()
RQName\RQNameTests.vb (1)
243
Dim doc = workspace.
Documents
.Single()
Snippets\CSharpSnippetExpansionClientTests.vb (5)
309
Dim document = workspace.
Documents
.Single()
330
Dim subjectBufferDocument = workspace.
Documents
.Single()
377
workspace.
Documents
.Single().GetTextBuffer().AsTextContainer().GetOpenDocumentInCurrentContext(),
378
workspace.
Documents
.Single().GetTextView(),
379
workspace.
Documents
.Single().GetTextBuffer())
Snippets\VisualBasicSnippetExpansionClientTests.vb (5)
351
Dim document = workspace.
Documents
.Single()
398
workspace.
Documents
.Single().GetTextBuffer().AsTextContainer().GetOpenDocumentInCurrentContext(),
399
workspace.
Documents
.Single().GetTextView(),
400
workspace.
Documents
.Single().GetTextBuffer())
426
Dim subjectBufferDocument = workspace.
Documents
.Single()
Venus\DocumentService_IntegrationTests.vb (8)
73
Dim cursorDocument = workspace.
Documents
.First(Function(d) d.CursorPosition.HasValue)
84
Dim definitionDocument = workspace.
Documents
.First(Function(d) d.AnnotatedSpans.ContainsKey("Definition"))
141
Dim originalDocument = workspace.
Documents
.First(Function(d) d.AnnotatedSpans.ContainsKey("Original"))
151
Dim definitionDocument = workspace.
Documents
.First(Function(d) d.AnnotatedSpans.ContainsKey("Definition"))
183
Dim document = workspace.CurrentSolution.GetDocument(workspace.
Documents
.First().Id)
225
Dim document = workspace.CurrentSolution.GetDocument(workspace.
Documents
.First().Id)
276
Dim mappedTestDocument = testWorkspace.
Documents
.First(Function(d) d.Id <> testDocument.Id)
314
Dim mappedTestDocument = testWorkspace.
Documents
.First(Function(d) d.Id <> testDocument.Id)
Venus\DocumentServiceTests.vb (8)
34
Dim subjectDocument = workspace.
Documents
.Single()
58
Dim subjectDocument = workspace.
Documents
.Single()
90
Dim subjectDocument = workspace.
Documents
.Single()
113
Dim subjectDocument = workspace.
Documents
.Single()
134
Dim subjectDocument = workspace.
Documents
.Single()
172
Dim subjectDocument = workspace.
Documents
.Single()
220
Dim subjectDocument = workspace.
Documents
.Single()
273
Dim subjectDocument = workspace.
Documents
.Single()