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); 586var newVersion = await cs.GetProject(project1.Id).GetDependentSemanticVersionAsync(); 723workspace.OnProjectRemoved(project1.Id); 773var newSolution = oldSolution.AddDocument(DocumentId.CreateNewId(project1.Id), "Doc2", SourceText.From(doc2Text)); 778Assert.Equal(2, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count()); 799Assert.Equal(0, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count()); 1255Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count()); 1256Assert.Equal(2, workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Count()); 1265Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count()); 1266Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Count()); 1267Assert.Equal("original.config", workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Single().Name); 1291Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count()); 1292Assert.Equal(2, workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Count()); 1301Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count()); 1302Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Count()); 1303Assert.Equal("original.config", workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Single().Name); 1324Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count()); 1325Assert.Equal(2, workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Count()); 1331Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count()); 1332Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Count()); 1333Assert.Equal("original.config", workspace.CurrentSolution.GetProject(project1.Id).AdditionalDocuments.Single().Name); 1352Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count()); 1353Assert.Equal(2, workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Count()); 1359Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).Documents.Count()); 1360Assert.Equal(1, workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Count()); 1361Assert.Equal("original.config", workspace.CurrentSolution.GetProject(project1.Id).AnalyzerConfigDocuments.Single().Name);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
1062var projectId = workspace.Projects[0].Id;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
348solution = 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); 171var projectWithConfig = workspace.CurrentSolution.GetRequiredProject(testProjectWithConfig.Id); 210var 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)
325=> this.Projects.FirstOrDefault(p => p.Id == projectId); 666OnProjectReferenceAdded(fromProject.Id, new ProjectReference(toProject.Id, aliases.Any() ? aliases : default)); 681OnProjectReferenceAdded(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);