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