Base:
property
Id
Microsoft.CodeAnalysis.Test.Utilities.AbstractTestHostProject.Id
67 references to Id
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (53)
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (2)
146var dependentProject = workspace.Projects.Single(proj => proj.Id != project.Id); 150workspace.OnProjectReferenceAdded(dependentProject.Id, new ProjectReference(project.Id));
Workspaces\WorkspaceTests_EditorFeatures.cs (51)
69workspace.OnParseOptionsChanged(project.Id, project.ParseOptions); 106workspace.OnProjectRemoved(project.Id); 122workspace.OnProjectRemoved(project.Id); 136Assert.Throws<ArgumentException>(() => workspace.OnProjectRemoved(project.Id)); 150Assert.Throws<ArgumentException>(() => workspace.OnProjectRemoved(project2.Id)); 227.GetProjectState(project1.Id) 234.GetProjectState(project2.Id) 267Assert.Throws<ArgumentException>(() => workspace.OnProjectReferenceAdded(project1.Id, new ProjectReference(project2.Id))); 282var reference = new ProjectReference(project2.Id); 283workspace.OnProjectReferenceAdded(project1.Id, reference); 304workspace.OnProjectReferenceAdded(project1.Id, new ProjectReference(project2.Id)); 306Assert.Throws<ArgumentException>(() => workspace.OnProjectReferenceAdded(project1.Id, new ProjectReference(project2.Id))); 321workspace.OnProjectReferenceAdded(project1.Id, new ProjectReference(project2.Id)); 322workspace.OnProjectReferenceRemoved(project1.Id, new ProjectReference(project2.Id)); 343workspace.OnProjectReferenceAdded(project1.Id, new ProjectReference(project2.Id)); 345Assert.Throws<ArgumentException>(() => workspace.OnProjectReferenceAdded(project2.Id, new ProjectReference(project1.Id))); 360workspace.OnProjectRemoved(project1.Id); 377workspace.OnProjectRemoved(project1.Id); 396workspace.OnProjectRemoved(project1.Id); 578var newVersion = await cs.GetProject(project1.Id).GetDependentSemanticVersionAsync(); 711workspace.OnProjectRemoved(project1.Id); 761var newSolution = oldSolution.AddDocument(DocumentId.CreateNewId(project1.Id), "Doc2", SourceText.From(doc2Text)); 766Assert.Equal(2, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count()); 787Assert.Equal(0, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count()); 1243Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count()); 1244Assert.Equal(2, workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Count()); 1253Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count()); 1254Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Count()); 1255Assert.Equal("original.config", workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Single().Name); 1279Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count()); 1280Assert.Equal(2, workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Count()); 1289Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count()); 1290Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Count()); 1291Assert.Equal("original.config", workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Single().Name); 1312Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count()); 1313Assert.Equal(2, workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Count()); 1319Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count()); 1320Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Count()); 1321Assert.Equal("original.config", workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Single().Name); 1340Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count()); 1341Assert.Equal(2, workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Count()); 1347Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count()); 1348Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Count()); 1349Assert.Equal("original.config", workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Single().Name);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
1061var projectId = workspace.Projects[0].Id;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
356solution = solution.WithProjectFilePath(project.Id, GetDocumentFilePathFromName(project.FilePath));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (1)
62workspace.Projects.Single().Id,
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
Options\SolutionAnalyzerConfigOptionsUpdaterTests.cs (3)
68workspace.OnProjectRemoved(project.Id); 156var projectWithConfig = workspace.CurrentSolution.GetRequiredProject(testProjectWithConfig.Id); 195var projectWithoutConfig = workspace.CurrentSolution.GetRequiredProject(testProjectWithoutConfig.Id);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (7)
Workspaces\TestHostProject`1.cs (2)
151ProjectReferences = projectReferences != null ? projectReferences.Select(p => new ProjectReference(p.Id)) : SpecializedCollections.EmptyEnumerable<ProjectReference>(); 252Id,
Workspaces\TestWorkspace`1.cs (5)
332=> this.Projects.FirstOrDefault(p => p.Id == projectId); 693OnProjectReferenceAdded(fromProject.Id, new ProjectReference(toProject.Id, aliases.Any() ? aliases : default)); 708OnProjectReferenceAdded(submissions[i].Id, new ProjectReference(submissions[j].Id));
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
DocumentOutline\DocumentOutlineTestsBase.cs (1)
115solution = solution.WithProjectFilePath(project.Id, PathRoot + project.Name);