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