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