72 references to CreateTestProjectWithFiles
Microsoft.Build.BuildCheck.UnitTests (1)
TaskInvocationAnalysisDataTests.cs (1)
85var testProject = env.CreateTestProjectWithFiles($"<Project><Target Name=\"Build\">{taskInvocation}</Target></Project>");
Microsoft.Build.CommandLine.UnitTests (4)
XMake_Tests.cs (4)
2568TransientTestProjectWithFiles testProject = _env.CreateTestProjectWithFiles(projectContents); 2655TransientTestProjectWithFiles testProject = testEnvironment.CreateTestProjectWithFiles(projectContents); 2712TransientTestProjectWithFiles testProject = testEnvironment.CreateTestProjectWithFiles(projectContents); 2818TransientTestProjectWithFiles testProject = _env.CreateTestProjectWithFiles(projectContents, Array.Empty<string>());
Microsoft.Build.Engine.OM.UnitTests (21)
Construction\ConstructionEditing_Tests.cs (1)
3221var testProject = env.CreateTestProjectWithFiles(@"
Construction\ProjectRootElement_Tests.cs (3)
1293var projectFiles = env.CreateTestProjectWithFiles("", new[] { "build.proj" }); 1331var testFiles = env.CreateTestProjectWithFiles("", new[] { "build.proj" }); 1596var testFiles = env.CreateTestProjectWithFiles("", new[] { "build.proj" });
Definition\DefinitionEditing_Tests.cs (1)
1699var testProject = env.CreateTestProjectWithFiles(projectContents, files);
Definition\Project_Tests.cs (8)
1446var projectFiles = env.CreateTestProjectWithFiles("", new[] { "import.proj" }); 1511var projectFiles = env.CreateTestProjectWithFiles("", new[] { "import.proj" }); 1599var projectFiles = env.CreateTestProjectWithFiles("", new[] { "build.proj" }); 3253var testFiles = env.CreateTestProjectWithFiles(projectContents, Array.Empty<string>(), "u/x"); 3282var testFiles = env.CreateTestProjectWithFiles(projectContents, Array.Empty<string>()); 3574var testFiles = env.CreateTestProjectWithFiles(projectContents, Array.Empty<string>(), relativePathOfProjectFile); 3768var testFiles = env.CreateTestProjectWithFiles(projectContents, Array.Empty<string>()); 3844var testFiles = env.CreateTestProjectWithFiles(project, new[] { "a", "b" });
Definition\ProjectItem_Tests.cs (8)
937var testProject = env.CreateTestProjectWithFiles(content.Cleanup()); 1101.CreateTestProjectWithFiles(projectContents, inputFiles, "project") 1154var testFiles = env.CreateTestProjectWithFiles(projectContents, files, relativePathFromRootToProject); 1174var testFiles = env.CreateTestProjectWithFiles(projectContents, files, relativePathFromRootToProject); 2214var testProject = env.CreateTestProjectWithFiles(projectContents.Cleanup(), new[] { "a.cs" }); 2274var testProject = env.CreateTestProjectWithFiles(projectContents.Cleanup(), new[] { "a.cs" }); 3709var testProject = env.CreateTestProjectWithFiles(formattedProjectContents, globFiles); 3749var testFiles = env.CreateTestProjectWithFiles(@"<?xml version=`1.0` encoding=`utf-8`?>
Microsoft.Build.Engine.UnitTests (40)
BackEnd\BuildManager_Logging_Tests.cs (1)
97var testFiles = _env.CreateTestProjectWithFiles(string.Empty, new[] { "main", "child1" }, string.Empty);
BackEnd\BuildManager_Tests.cs (5)
3694var testFiles = env.CreateTestProjectWithFiles(string.Empty, new[] { "p2p", "main" }); 3777var testFiles = _env.CreateTestProjectWithFiles(string.Empty, new[] { "main", "p2p" }, string.Empty); 3845var testFiles = _env.CreateTestProjectWithFiles(string.Empty, new[] { "main", "import" }, string.Empty); 3932var testFiles = _env.CreateTestProjectWithFiles(string.Empty, new[] { "main", "child1", "child2" }, string.Empty); 4081var testFiles = env.CreateTestProjectWithFiles(projectContents);
BackEnd\TargetBuilder_Tests.cs (2)
219var files = env.CreateTestProjectWithFiles(projectContents, new[] { "a.txt", "b.txt", "c.txt" }); 263var files = env.CreateTestProjectWithFiles(projectContents, new[] { "a.txt", "b.txt", "c.txt" });
BackEnd\TaskHostFactory_Tests.cs (1)
172TransientTestProjectWithFiles project = env.CreateTestProjectWithFiles(projectContents);
BackEnd\TaskRegistry_Tests.cs (1)
660var testProject = env.CreateTestProjectWithFiles(ObjectModelHelpers.CleanupFileContents(proj));
ConsoleLogger_Tests.cs (3)
195var project = env.CreateTestProjectWithFiles(@" 235var project = env.CreateTestProjectWithFiles(@" 283var project = env.CreateTestProjectWithFiles(@"
Construction\ProjectRootElement_Tests.cs (2)
75var testFiles = env.CreateTestProjectWithFiles(projectContents, Array.Empty<string>()); 107var testFiles = env.CreateTestProjectWithFiles(projectContents, Array.Empty<string>());
Evaluation\Evaluator_Tests.cs (7)
949var content = env.CreateTestProjectWithFiles(@" 4625var project1 = testEnvironment.CreateTestProjectWithFiles("<Project />"); 4626var project2 = testEnvironment.CreateTestProjectWithFiles("<Project />"); 4628var primaryProject = testEnvironment.CreateTestProjectWithFiles($@"<Project> 4654var project1 = testEnvironment.CreateTestProjectWithFiles("<Project />"); 4655var project2 = testEnvironment.CreateTestProjectWithFiles("<Project />"); 4657var primaryProject = testEnvironment.CreateTestProjectWithFiles($@"<Project>
Evaluation\ItemEvaluation_Tests.cs (2)
590var projectFiles = env.CreateTestProjectWithFiles(content, new[] { "foo/extra.props", "foo/a.cs", "foo/b.cs", "bar/c.cs", "bar/d.cs", "yyy/d.cs" }); 653var projectFiles = env.CreateTestProjectWithFiles(content);
Evaluation\Preprocessor_Tests.cs (1)
1093TransientTestProjectWithFiles import = env.CreateTestProjectWithFiles(@"<Project Sdk='MSBuildUnitTestSdk2'>
FileMatcher_Tests.cs (1)
1287var testProject = env.CreateTestProjectWithFiles(string.Empty, new[] { "a.cs", "b.cs", "c.cs" });
Graph\ProjectGraph_Tests.cs (1)
1882var projectFile = _env.CreateTestProjectWithFiles($@"<Project>{MultitargetingSpecificationPropertyGroup}</Project>").ProjectFile;
WarningsAsMessagesAndErrors_Tests.cs (13)
46TransientTestProjectWithFiles project2 = testEnvironment.CreateTestProjectWithFiles($@" 59TransientTestProjectWithFiles project1 = testEnvironment.CreateTestProjectWithFiles($@" 140TransientTestProjectWithFiles project2 = testEnvironment.CreateTestProjectWithFiles($@" 153TransientTestProjectWithFiles project1 = testEnvironment.CreateTestProjectWithFiles($@" 289TransientTestProjectWithFiles proj = env.CreateTestProjectWithFiles($@" 321TransientTestProjectWithFiles proj = env.CreateTestProjectWithFiles($@" 378TransientTestProjectWithFiles proj = env.CreateTestProjectWithFiles($@" 407TransientTestProjectWithFiles proj = env.CreateTestProjectWithFiles($@" 429TransientTestProjectWithFiles proj = env.CreateTestProjectWithFiles($@" 454TransientTestProjectWithFiles proj = env.CreateTestProjectWithFiles($@" 476TransientTestProjectWithFiles proj = env.CreateTestProjectWithFiles($@" 496TransientTestProjectWithFiles proj = env.CreateTestProjectWithFiles($@" 516TransientTestProjectWithFiles proj = env.CreateTestProjectWithFiles($@"
Microsoft.Build.Tasks.UnitTests (3)
Exec_Tests.cs (2)
935var testProject = env.CreateTestProjectWithFiles(@"<Project> 988var testProject = env.CreateTestProjectWithFiles(@"<Project>
RoslynCodeTaskFactory_Tests.cs (1)
644TransientTestProjectWithFiles proj = env.CreateTestProjectWithFiles(projectContent);
Microsoft.Build.UnitTests.Shared (3)
ObjectModelHelpers.cs (3)
144var testProject = env.CreateTestProjectWithFiles(projectContents, inputFiles); 1404var testProject = env.CreateTestProjectWithFiles(content.Cleanup()); 1461var testProject = env.CreateTestProjectWithFiles(content.Cleanup());