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