4 instantiations of TransientTestFolder
Microsoft.Build.Tasks.UnitTests (1)
GenerateBindingRedirects_Tests.cs (1)
354string appConfigFile = _env.CreateFile(transientTestFolder ?? new TransientTestFolder(), ".config").Path;
Microsoft.Build.UnitTests.Shared (3)
EngineTestEnvironment.cs (1)
125_folder = new TransientTestFolder();
TestEnvironment.cs (2)
288var folder = WithTransientTestState(new TransientTestFolder(folderPath, createFolder, subfolder)); 740return new TransientTestFolder(System.IO.Path.Combine(Path, directoryName));
203 references to TransientTestFolder
Microsoft.Build.BuildCheck.UnitTests (17)
ConfigurationProvider_Tests.cs (7)
23TransientTestFolder workFolder1 = testEnvironment.CreateFolder(createFolder: true); 44TransientTestFolder workFolder1 = testEnvironment.CreateFolder(createFolder: true); 71TransientTestFolder workFolder1 = testEnvironment.CreateFolder(createFolder: true); 104TransientTestFolder workFolder1 = testEnvironment.CreateFolder(createFolder: true); 129TransientTestFolder workFolder1 = testEnvironment.CreateFolder(createFolder: true); 160TransientTestFolder workFolder1 = testEnvironment.CreateFolder(createFolder: true); 192TransientTestFolder workFolder1 = testEnvironment.CreateFolder(createFolder: true);
EditorConfigParser_Tests.cs (4)
65TransientTestFolder workFolder1 = testEnvironment.CreateFolder(createFolder: true); 66TransientTestFolder workFolder2 = testEnvironment.CreateFolder(Path.Combine(workFolder1.Path, "subfolder"), createFolder: true); 97TransientTestFolder workFolder1 = testEnvironment.CreateFolder(createFolder: true); 98TransientTestFolder workFolder2 = testEnvironment.CreateFolder(Path.Combine(workFolder1.Path, "subfolder"), createFolder: true);
EndToEndTests.cs (5)
161TransientTestFolder workFolder = _env.CreateFolder(createFolder: true); 271TransientTestFolder workFolder = _env.CreateFolder(createFolder: true); 372TransientTestFolder workFolder = _env.CreateFolder(createFolder: true); 873TransientTestFolder workFolder = _env.CreateFolder(createFolder: true); 947TransientTestFolder workFolder = _env.CreateFolder(createFolder: true);
TestAssemblyInfo.cs (1)
71var assemblyTempFolder = _testEnvironment.CreateFolder(newTempPath);
Microsoft.Build.CommandLine.UnitTests (16)
PerfLog_Tests.cs (4)
29TransientTestFolder perfLogFolder = testEnv.CreateFolder(createFolder: true); 33TransientTestFolder projectFolder = testEnv.CreateFolder(createFolder: true); 64TransientTestFolder perfLogFolder = testEnv.CreateFolder(createFolder: true); 69TransientTestFolder projectFolder = testEnv.CreateFolder(createFolder: true);
TerminalLogger_Tests.cs (1)
726TransientTestFolder logFolder = env.CreateFolder(createFolder: true);
TestAssemblyInfo.cs (1)
71var assemblyTempFolder = _testEnvironment.CreateFolder(newTempPath);
XMake_Tests.cs (10)
1282TransientTestFolder folder = env.CreateFolder(createFolder: true); 1303var directory = _env.CreateFolder(); 1320var directory = _env.CreateFolder(); 1340var directory = _env.CreateFolder(); 1438var directory = _env.CreateFolder(); 1457var directory = _env.CreateFolder(); 1475var directory = _env.CreateFolder(); 1493var directory = _env.CreateFolder(); 1516var directory = _env.CreateFolder(); 2481var tempDir = _env.CreateFolder();
Microsoft.Build.Engine.OM.UnitTests (3)
Definition\ProjectItem_Tests.cs (1)
451TransientTestFolder directory = env.CreateFolder(createFolder: true);
NugetRestoreTests.cs (1)
28TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: true);
TestAssemblyInfo.cs (1)
71var assemblyTempFolder = _testEnvironment.CreateFolder(newTempPath);
Microsoft.Build.Engine.UnitTests (74)
BackEnd\BuildManager_Tests.cs (1)
1876var projectFolder = _env.CreateFolder();
BackEnd\IntrinsicTask_Tests.cs (1)
2525var projectDirectory = env.CreateFolder();
BackEnd\TaskExecutionHost_Tests.cs (1)
1064var debugFolder = env.CreateFolder();
BinaryLogger_Tests.cs (5)
353TransientTestFolder logFolder = env.CreateFolder(createFolder: true); 412TransientTestFolder logFolder = env.CreateFolder(createFolder: true); 476TransientTestFolder testFolder = _env.DefaultTestDirectory.CreateDirectory("TestDir"); 477TransientTestFolder testFolder2 = _env.DefaultTestDirectory.CreateDirectory("TestDir2"); 623TransientTestFolder testFolder = env.CreateFolder(createFolder: true);
Construction\SolutionFile_OldParser_Tests.cs (1)
773var solutionFolder = env.CreateFolder(Path.Combine(FileUtilities.GetTemporaryDirectory(), "sln"));
Construction\SolutionFilter_Tests.cs (8)
53TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: true); 54TransientTestFolder classLibFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "ClassLibrary"), createFolder: true); 55TransientTestFolder classLibSubFolder = testEnvironment.CreateFolder(Path.Combine(classLibFolder.Path, "ClassLibrary"), createFolder: true); 64TransientTestFolder simpleProjectFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "SimpleProject"), createFolder: true); 65TransientTestFolder simpleProjectSubFolder = testEnvironment.CreateFolder(Path.Combine(simpleProjectFolder.Path, "SimpleProject"), createFolder: true); 213TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: true); 231TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: true); 232TransientTestFolder src = testEnvironment.CreateFolder(Path.Combine(folder.Path, "src"), createFolder: true);
Construction\SolutionProjectGenerator_Tests.cs (10)
69TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: true); 91TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: true); 92TransientTestFolder classLibFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "classlib"), createFolder: true); 102TransientTestFolder simpleProjectFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "simpleProject"), createFolder: true); 136TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: true); 137TransientTestFolder classLibFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "classlib"), createFolder: true); 153TransientTestFolder simpleProjectFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "simpleProject"), createFolder: true); 212TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: true); 213TransientTestFolder classLibFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "classlib"), createFolder: true); 229TransientTestFolder simpleProjectFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "simpleProject"), createFolder: true);
Definition\ProjectEvaluationContext_Tests.cs (13)
481var project1Root = _env.DefaultTestDirectory.CreateDirectory("Project1"); 485var project2Root = _env.DefaultTestDirectory.CreateDirectory("Project2"); 546var project1Directory = _env.DefaultTestDirectory.CreateDirectory("Project1"); 549var project2Directory = _env.DefaultTestDirectory.CreateDirectory("Project2"); 608var globDirectory = _env.DefaultTestDirectory.CreateDirectory("glob"); 610var projectRoot = _env.DefaultTestDirectory.CreateDirectory("proj"); 612var project1Directory = projectRoot.CreateDirectory("Project1"); 614var project2SubDir = projectRoot.CreateDirectory("subdirectory"); 616var project2Directory = project2SubDir.CreateDirectory("Project2"); 682var testDirectory = _env.DefaultTestDirectory; 683var globDirectory = testDirectory.CreateDirectory("GlobDirectory"); 851var subdirectory = _env.DefaultTestDirectory.CreateDirectory("subDirectory"); 907var subdirectory = _env.DefaultTestDirectory.CreateDirectory("subDirectory");
Evaluation\Evaluator_Tests.cs (1)
76TransientTestFolder existentDirectory = env.CreateFolder(createFolder: true);
Evaluation\Expander_Tests.cs (19)
4780var root = env.CreateFolder(); 4782var alpha = root.CreateDirectory("alpha"); 4795var beta = alpha.CreateDirectory("beta"); 4796var gamma = alpha.CreateDirectory("gamma"); 4824var root = env.CreateFolder(); 4826var alpha = root.CreateDirectory("alpha"); 4839var beta = alpha.CreateDirectory("beta"); 4840var gamma = root.CreateDirectory("gamma"); 4859var root = env.CreateFolder(); 4899var root = env.CreateFolder(); 4914var alpha = root.CreateDirectory("alpha"); 4940var root = env.CreateFolder(); 4955var alpha = root.CreateDirectory("alpha"); 4956var beta = alpha.CreateDirectory("beta"); 4957var delta = alpha.CreateDirectory("delta"); 4982var root = env.CreateFolder(); 5026var root = env.CreateFolder(); 5069var root = env.CreateFolder(); 5101var root = env.CreateFolder();
FileMatcher_Tests.cs (4)
52TransientTestFolder testFolder = _env.CreateFolder(); 78TransientTestFolder testFolder = _env.CreateFolder(); 80TransientTestFolder tf2 = _env.CreateFolder(Path.Combine(testFolder.Path, "subfolder")); 102TransientTestFolder testFolder = _env.CreateFolder();
Graph\GetCompatiblePlatformGraph_Tests.cs (7)
364TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: true); 365TransientTestFolder project1Folder = testEnvironment.CreateFolder(Path.Combine(folder.Path, firstProjectName), createFolder: true); 366TransientTestFolder project1SubFolder = testEnvironment.CreateFolder(Path.Combine(project1Folder.Path, firstProjectName), createFolder: true); 380TransientTestFolder project2Folder = testEnvironment.CreateFolder(Path.Combine(folder.Path, secondProjectName), createFolder: true); 381TransientTestFolder project2SubFolder = testEnvironment.CreateFolder(Path.Combine(project2Folder.Path, secondProjectName), createFolder: true); 391TransientTestFolder project3Folder = testEnvironment.CreateFolder(Path.Combine(folder.Path, thirdProjectName), createFolder: true); 392TransientTestFolder project3SubFolder = testEnvironment.CreateFolder(Path.Combine(project3Folder.Path, thirdProjectName), createFolder: true);
TerminalLoggerConfiguration_Tests.cs (1)
31TransientTestFolder logFolder = _env.CreateFolder(createFolder: true);
TestAssemblyInfo.cs (1)
71var assemblyTempFolder = _testEnvironment.CreateFolder(newTempPath);
TypeLoader_Tests.cs (1)
101TransientTestFolder folder = env.CreateFolder(createFolder: true);
Microsoft.Build.Framework.UnitTests (1)
TestAssemblyInfo.cs (1)
71var assemblyTempFolder = _testEnvironment.CreateFolder(newTempPath);
Microsoft.Build.Tasks.UnitTests (76)
AddToWin32Manifest_Tests.cs (1)
103var projectFolder = env.CreateFolder();
CodeTaskFactoryEmbeddedFileInBinlogTestHelper.cs (1)
30TransientTestFolder folder = env.CreateFolder(createFolder: true);
Copy_Tests.cs (17)
170var destinationFolder = env.CreateFolder(isDestinationExists); 194var s0Folder = env.DefaultTestDirectory.CreateDirectory("source0"); 197var s0AFolder = s0Folder.CreateDirectory("a"); 201var s0CFolder = s0Folder.CreateDirectory("c"); 204var s1Folder = env.DefaultTestDirectory.CreateDirectory("source1"); 207var s1AFolder = s1Folder.CreateDirectory("a"); 210var s1BFolder = s1Folder.CreateDirectory("b"); 213var destinationFolder = env.CreateFolder(isDestinationExists); 239var destinationFolder = env.CreateFolder(true); 263var sourceFolder = env.DefaultTestDirectory.CreateDirectory("source"); 265var aDirectory = sourceFolder.CreateDirectory("a"); 268var destinationFolder = env.CreateFolder(isDestinationExists); 293var destinationFolder = env.CreateFolder(true); 317var destinationFolder = env.CreateFolder(true); 365var destinationFolder = env.CreateFolder(true); 389var sourceFolder = env.CreateFolder(true); 2944TransientTestFolder destFolder = env.CreateFolder(createFolder: false);
CreateCSharpManifestResourceName_Tests.cs (1)
456var subfolder = env.DefaultTestDirectory.CreateDirectory("SR1");
DownloadFile_Tests.cs (6)
32TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: true); 61TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: false); 109TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: false); 139TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: false); 204TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: false); 317TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: true);
GenerateBindingRedirects_Tests.cs (3)
267TransientTestFolder rootTestFolder = env.CreateFolder(); 268TransientTestFolder testFolder = env.CreateFolder(Path.Combine(rootTestFolder.Path, "\uD873\uDD02\u9FA8\u82D8\u722B\u9EA4\u03C5\u33D1\uE038\u486B\u0033")); 344TransientTestFolder transientTestFolder = null)
GetSDKReference_Tests.cs (1)
278TransientTestFolder folder = env.CreateFolder();
HintPathResolver_Tests.cs (1)
43var tempfolder = _env.DefaultTestDirectory.CreateDirectory("tempfolder_for_CanResolveLongHintPath");
ResourceHandling\GenerateResource_Tests.cs (5)
324var folder = _env.CreateFolder(); 370var folder = _env.CreateFolder(); 454var folder = _env.CreateFolder(); 675var folder = _env.CreateFolder(); 3918var folder = env.CreateFolder(true);
ResourceHandling\MSBuildResXReader_Tests.cs (4)
158var baseDir = env.CreateFolder(createFolder: true); 159var resourceHandlingFolder = baseDir.CreateDirectory("ResourceHandling"); 293var baseDir = env.CreateFolder(createFolder: true); 294var resourceHandlingFolder = baseDir.CreateDirectory("ResourceHandling");
RoslynCodeTaskFactory_Tests.cs (2)
50TransientTestFolder folder = env.CreateFolder(createFolder: true); 91TransientTestFolder folder = env.CreateFolder(createFolder: true);
TestAssemblyInfo.cs (1)
71var assemblyTempFolder = _testEnvironment.CreateFolder(newTempPath);
Unzip_Tests.cs (29)
29TransientTestFolder source = testEnvironment.CreateFolder(createFolder: true); 30TransientTestFolder destination = testEnvironment.CreateFolder(createFolder: false); 57TransientTestFolder source = testEnvironment.CreateFolder(createFolder: true); 58TransientTestFolder destination = testEnvironment.CreateFolder(createFolder: false); 111TransientTestFolder source = testEnvironment.CreateFolder(createFolder: true); 112TransientTestFolder destination = testEnvironment.CreateFolder(createFolder: false); 115TransientTestFolder emptyDir = source.CreateDirectory("emptyDir"); 116TransientTestFolder subDir = source.CreateDirectory("subDir"); 182TransientTestFolder source = testEnvironment.CreateFolder(createFolder: true); 183TransientTestFolder destination = testEnvironment.CreateFolder(createFolder: false); 210TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: false); 232TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: false); 252TransientTestFolder source = testEnvironment.CreateFolder(createFolder: true); 253TransientTestFolder destination = testEnvironment.CreateFolder(createFolder: false); 281TransientTestFolder source = testEnvironment.CreateFolder(createFolder: true); 282TransientTestFolder destination = testEnvironment.CreateFolder(createFolder: false); 310TransientTestFolder source = testEnvironment.CreateFolder(createFolder: true); 311TransientTestFolder destination = testEnvironment.CreateFolder(createFolder: false); 312TransientTestFolder sub = source.CreateDirectory("sub"); 347TransientTestFolder source = testEnvironment.CreateFolder(createFolder: true); 348TransientTestFolder destination = testEnvironment.CreateFolder(createFolder: false); 375TransientTestFolder source = testEnvironment.CreateFolder(createFolder: true); 376TransientTestFolder destination = testEnvironment.CreateFolder(createFolder: false); 403TransientTestFolder source = testEnvironment.CreateFolder(createFolder: true); 404TransientTestFolder destination = testEnvironment.CreateFolder(createFolder: false); 431TransientTestFolder source = testEnvironment.CreateFolder(createFolder: true); 432TransientTestFolder destination = testEnvironment.CreateFolder(createFolder: false); 458TransientTestFolder source = testEnvironment.CreateFolder(createFolder: true); 471TransientTestFolder destination = testEnvironment.CreateFolder(createFolder: false);
WriteLinesToFile_Tests.cs (1)
300var directory = testEnv.CreateFolder(folderPath: null, createFolder: false);
ZipDirectory_Tests.cs (3)
27TransientTestFolder sourceFolder = testEnvironment.CreateFolder(createFolder: true); 68TransientTestFolder sourceFolder = testEnvironment.CreateFolder(createFolder: true); 110TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: true);
Microsoft.Build.UnitTests.Shared (15)
EngineTestEnvironment.cs (1)
111private readonly TransientTestFolder _folder;
TestEnvironment.cs (14)
40private readonly Lazy<TransientTestFolder> _defaultTestDirectory; 44public TransientTestFolder DefaultTestDirectory => _defaultTestDirectory.Value; 66_defaultTestDirectory = new Lazy<TransientTestFolder>(() => CreateFolder()); 182var folder = CreateFolder(); 191var folder = CreateFolder(null, true, subfolder); 221public TransientTestFile CreateFile(TransientTestFolder transientTestFolder, string fileName, string contents = "") 232public TransientTestFile CreateFile(TransientTestFolder transientTestFolder, string extension = ".tmp") 255public TransientTestFile GetTempFile(TransientTestFolder transientTestFolder, string extension = ".tmp") 286public TransientTestFolder CreateFolder(string folderPath = null, bool createFolder = true, string subfolder = null) 288var folder = WithTransientTestState(new TransientTestFolder(folderPath, createFolder, subfolder)); 299public TransientTestFolder CreateFolder(bool createFolder) 738public TransientTestFolder CreateDirectory(string directoryName) 807public static TransientZipArchive Create(TransientTestFolder source, TransientTestFolder destination, string filename = "test.zip")
Microsoft.Build.Utilities.UnitTests (1)
TestAssemblyInfo.cs (1)
71var assemblyTempFolder = _testEnvironment.CreateFolder(newTempPath);