2 writes to Name
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Workspaces\TestHostDocument.cs (2)
107
Name
= name;
142
Name
= displayName;
27 references to Name
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (13)
Completion\CompletionProviders\OverrideCompletionProviderTests.cs (8)
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;
3195
var testDocument = workspace.Documents.First(d => d.
Name
== "CurrentDocument.cs");
3249
var testDocument = workspace.Documents.First(d => d.
Name
== "CurrentDocument.cs");
Intents\IntentTestsBase.cs (1)
105
var testDocument = workspace.Documents.Single(d => d.
Name
== "test1.cs");
Interactive\NavigateTo\InteractiveNavigateToTests.cs (1)
624
assertDescription("File:", w.Documents.Single().
Name
);
NavigateTo\NavigateToTests.cs (1)
1014
assertDescription("File:", w.Documents.Single().
Name
);
QuickInfo\SemanticQuickInfoSourceTests.cs (2)
119
var sourceDocument = workspace.Documents.Single(d => d.
Name
== "SourceDocument");
271
var sourceDocument = workspace.Documents.First(d => d.
Name
== "SourceDocument");
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (11)
Completion\AbstractCompletionProviderTests.cs (4)
811
var position = testWorkspace.Documents.Single(d => d.
Name
== "SourceDocument").CursorPosition.Value;
813
var documentId = testWorkspace.Documents.Single(d => d.
Name
== "SourceDocument").Id;
867
var position = testWorkspace.Documents.Single(d => d.
Name
== "SourceDocument").CursorPosition.Value;
869
var documentId = testWorkspace.Documents.Single(d => d.
Name
== "SourceDocument").Id;
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
338
solution = solution.WithDocumentFilePath(document.Id, GetDocumentFilePathFromName(document.
Name
));
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;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Workspaces\TestHostDocument.cs (2)
163
_id = DocumentId.CreateNewId(project.Id, this.
Name
);
205
return DocumentInfo.Create(Id,
Name
, Folders, SourceCodeKind, Loader, FilePath, isGenerated: false)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
DocumentOutline\DocumentOutlineTestsBase.cs (1)
106
solution = solution.WithDocumentFilePath(document.Id, PathRoot + document.
Name
);