21 references to AddAdditionalDocument
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
1309var doc = project.AddAdditionalDocument("app.config", "text");
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
CodeRefactorings\CodeRefactoringServiceTest.cs (2)
167.AddAdditionalDocument("test.txt", "", filePath: "test.txt").Project 168.AddAdditionalDocument("test.log", "", filePath: "test.log").Project;
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
441project = project.AddAdditionalDocument(name: "dummy2.txt", text: "Additional File2 Text", filePath: "dummy2.txt").Project; 741project = project.AddAdditionalDocument("additional.txt", additionalText).Project;
Diagnostics\DiagnosticDataTests.cs (1)
141.Project.AddAdditionalDocument("AdditionalDocument.txt", "First line in file", filePath: "AdditionalDocument.txt");
Microsoft.CodeAnalysis.Workspaces.UnitTests (15)
SolutionTests\SolutionTests.cs (2)
4254project = project.AddAdditionalDocument("Test.txt", "").Project; 5546.AddAdditionalDocument("File.cs", text: "", filePath: FilePath).Project.Solution;
SolutionTests\SolutionWithSourceGeneratorTests.cs (13)
62project = project.AddAdditionalDocument("Test.txt", "Hello, world!").Project; 184.AddAdditionalDocument("Test.txt", "Hello, world!").Project 185.AddAdditionalDocument("Test2.txt", "Hello, world!").Project; 257.AddAdditionalDocument("Test.txt", "Hello, world!").Project; 300project = project.AddAdditionalDocument("Test.txt", "Hello, world!").Project; 341.AddAdditionalDocument("Test.txt", "Hello, world!").Project; 368.AddAdditionalDocument("Test.txt", "Hello, world!").Project; 408project = project.AddAdditionalDocument("Test.txt", "Hello, world!").Project; 421.AddAdditionalDocument("Test.txt", "Hello, world!").Project.Solution; 446.AddAdditionalDocument("Test.txt", "Hello, world!").Project; 461.AddAdditionalDocument("Test.txt", "Hello, world!").Project; 484.AddAdditionalDocument("Test.txt", "Hello, world!").Project; 504.AddAdditionalDocument("Test.txt", "Hello, world!").Project;