126 references to CreateFile
Microsoft.Build.BuildCheck.UnitTests (18)
ConfigurationProvider_Tests.cs (7)
24
TransientTestFile config1 = testEnvironment.
CreateFile
(workFolder1, ".editorconfig",
45
TransientTestFile config1 = testEnvironment.
CreateFile
(workFolder1, ".editorconfig",
72
TransientTestFile config1 = testEnvironment.
CreateFile
(workFolder1, ".editorconfig",
105
TransientTestFile config1 = testEnvironment.
CreateFile
(workFolder1, ".editorconfig",
130
TransientTestFile config1 = testEnvironment.
CreateFile
(workFolder1, ".editorconfig",
161
TransientTestFile config1 = testEnvironment.
CreateFile
(workFolder1, ".editorconfig",
193
TransientTestFile config1 = testEnvironment.
CreateFile
(workFolder1, ".editorconfig",
EditorConfigParser_Tests.cs (4)
68
TransientTestFile config1 = testEnvironment.
CreateFile
(workFolder2, ".editorconfig",
77
TransientTestFile config2 = testEnvironment.
CreateFile
(workFolder1, ".editorconfig",
100
TransientTestFile config1 = testEnvironment.
CreateFile
(workFolder2, ".editorconfig",
106
TransientTestFile config2 = testEnvironment.
CreateFile
(workFolder1, ".editorconfig",
EndToEndTests.cs (3)
619
projectFile = _env.
CreateFile
(workFolder, entryProjectAssetName, contents);
624
TransientTestFile supplementalFile = _env.
CreateFile
(workFolder, supplementalAssetName, supplementalContent);
627
editorconfigFile = _env.
CreateFile
(workFolder, ".editorconfig", ReadEditorConfig(ruleToSeverity, ruleToCustomConfig, testAssetsFolderName));
TestAssemblyInfo.cs (4)
78
_testEnvironment.
CreateFile
(
84
_testEnvironment.
CreateFile
(
89
_testEnvironment.
CreateFile
(
94
_testEnvironment.
CreateFile
(
Microsoft.Build.CommandLine.UnitTests (10)
PerfLog_Tests.cs (2)
34
TransientTestFile classLibrary = testEnv.
CreateFile
(projectFolder, "ClassLibrary.csproj",
70
TransientTestFile classLibrary = testEnv.
CreateFile
(projectFolder, "ClassLibrary.csproj",
TerminalLogger_Tests.cs (1)
707
TransientTestFile projectFile = env.
CreateFile
(logFolder, "myProj.proj", contents);
TestAssemblyInfo.cs (4)
78
_testEnvironment.
CreateFile
(
84
_testEnvironment.
CreateFile
(
89
_testEnvironment.
CreateFile
(
94
_testEnvironment.
CreateFile
(
XMake_Tests.cs (3)
1283
TransientTestFile autoRspFile = env.
CreateFile
(folder, AutoResponseFileName, "-nowarn:MSB1001 @myRsp.rsp %NONEXISTENTENVIRONMENTVARIABLE%");
1284
TransientTestFile projectFile = env.
CreateFile
(folder, "project.proj", "<Project><Target Name=\"T\"><Message Text=\"Text\"/></Target></Project>");
1285
TransientTestFile rpsFile = env.
CreateFile
(folder, "myRsp.rsp", "-nr:false -m:2");
Microsoft.Build.Engine.OM.UnitTests (6)
Definition\ProjectItem_Tests.cs (1)
452
TransientTestFile file = env.
CreateFile
(directory, "a.cs", String.Empty);
NugetRestoreTests.cs (1)
30
TransientTestFile sln = testEnvironment.
CreateFile
(folder, "test.sln",
TestAssemblyInfo.cs (4)
78
_testEnvironment.
CreateFile
(
84
_testEnvironment.
CreateFile
(
89
_testEnvironment.
CreateFile
(
94
_testEnvironment.
CreateFile
(
Microsoft.Build.Engine.UnitTests (41)
BinaryLogger_Tests.cs (4)
354
TransientTestFile projectFile = env.
CreateFile
(logFolder, "myProj.proj", contents);
413
TransientTestFile projectFile = env.
CreateFile
(logFolder, "myProj.proj", contents);
625
TransientTestFile projectFile1 = env.
CreateFile
(testFolder, "testProject01.proj", contents);
633
TransientTestFile projectFile2 = env.
CreateFile
(testFolder, $"testProject_{verbosity}.proj", contents);
Construction\SolutionFilter_Tests.cs (7)
55
TransientTestFile classLibrary = testEnvironment.
CreateFile
(classLibSubFolder, "ClassLibrary.csproj",
65
TransientTestFile simpleProject = testEnvironment.
CreateFile
(simpleProjectSubFolder, "SimpleProject.csproj",
73
TransientTestFile solutionFile = testEnvironment.
CreateFile
(simpleProjectFolder, "SimpleProject.sln",
110
TransientTestFile filterFile = testEnvironment.
CreateFile
(folder, "solutionFilter.slnf",
213
TransientTestFile slnf = testEnvironment.
CreateFile
(folder, "Dev.slnf", slnfValue.Replace(@"C:\\notAPath\\MSBuild.Dev.sln", sln.Path.Replace("\\", "\\\\")));
236
TransientTestFile sln = testEnvironment.
CreateFile
(folder, "Microsoft.Build.Dev.sln",
262
TransientTestFile slnf = testEnvironment.
CreateFile
(folder, "Dev.slnf",
Construction\SolutionProjectGenerator_Tests.cs (11)
70
TransientTestFile sln = testEnvironment.
CreateFile
(folder, "MySln.sln", "Microsoft Visual Studio Solution File, Format Version 12.00");
71
TransientTestFile targetsFile = testEnvironment.
CreateFile
(folder, name,
93
TransientTestFile classLibrary = testEnvironment.
CreateFile
(classLibFolder, "classlib.csproj",
103
TransientTestFile simpleProject = testEnvironment.
CreateFile
(simpleProjectFolder, "simpleProject.csproj",
112
TransientTestFile solutionFile = testEnvironment.
CreateFile
(folder, "testFolder.sln",
138
TransientTestFile classLibrary = testEnvironment.
CreateFile
(classLibFolder, "classlib.csproj",
154
TransientTestFile simpleProject = testEnvironment.
CreateFile
(simpleProjectFolder, "simpleProject.csproj",
169
TransientTestFile solutionFile = testEnvironment.
CreateFile
(folder, "testFolder.sln",
214
TransientTestFile classLibrary = testEnvironment.
CreateFile
(classLibFolder, "classlib.csproj",
230
TransientTestFile simpleProject = testEnvironment.
CreateFile
(simpleProjectFolder, "simpleProject.csproj",
245
TransientTestFile solutionFile = testEnvironment.
CreateFile
(folder, "testFolder.sln",
Evaluation\Evaluator_Tests.cs (1)
77
TransientTestFile realFile = env.
CreateFile
(existentDirectory, "realFile.csproj", @"<Project> </Project>");
Evaluation\Expander_Tests.cs (9)
4783
var projectFile = env.
CreateFile
(alpha, ".proj",
4827
var projectFile = env.
CreateFile
(alpha, ".proj",
4861
var projectFile = env.
CreateFile
(root, ".proj",
4901
var projectFile = env.
CreateFile
(root, ".proj",
4942
var projectFile = env.
CreateFile
(root, ".proj",
4984
var projectFile = env.
CreateFile
(root, ".proj",
5028
var projectFile = env.
CreateFile
(root, ".proj",
5071
var projectFile = env.
CreateFile
(root, ".proj",
5103
var projectFile = env.
CreateFile
(root, ".proj",
Graph\GetCompatiblePlatformGraph_Tests.cs (4)
367
TransientTestFile project1 = testEnvironment.
CreateFile
(project1SubFolder, $"{firstProjectName}.csproj",
382
TransientTestFile project2 = testEnvironment.
CreateFile
(project2SubFolder, $"{secondProjectName}.proj",
393
TransientTestFile project3 = testEnvironment.
CreateFile
(project3SubFolder, $"{thirdProjectName}.proj",
404
TransientTestFile solutionFile = testEnvironment.
CreateFile
(folder, "SimpleProject.sln",
TerminalLoggerConfiguration_Tests.cs (1)
32
TransientTestFile projectFile = _env.
CreateFile
(logFolder, "myProj.proj", $"""
TestAssemblyInfo.cs (4)
78
_testEnvironment.
CreateFile
(
84
_testEnvironment.
CreateFile
(
89
_testEnvironment.
CreateFile
(
94
_testEnvironment.
CreateFile
(
Microsoft.Build.Framework.UnitTests (4)
TestAssemblyInfo.cs (4)
78
_testEnvironment.
CreateFile
(
84
_testEnvironment.
CreateFile
(
89
_testEnvironment.
CreateFile
(
94
_testEnvironment.
CreateFile
(
Microsoft.Build.Tasks.UnitTests (42)
AddToWin32Manifest_Tests.cs (1)
104
var projectFile = env.
CreateFile
(projectFolder, "test.csproj", projectContent).Path;
CodeTaskFactoryEmbeddedFileInBinlogTestHelper.cs (1)
32
var sourceClass = env.
CreateFile
(folder, $"{taskName}.cs", sourceContent);
DownloadFile_Tests.cs (1)
338
testEnvironment.
CreateFile
(folder, "foo.txt", "C197675A3CC64CAA80680128CF4578C9");
MSBuildInternalMessage_Tests.cs (1)
44
var projectFile = env.
CreateFile
(env.CreateFolder(), "test.csproj", projectContent).Path;
ResourceHandling\GenerateResource_Tests.cs (1)
3674
env.
CreateFile
(
RoslynCodeTaskFactory_Tests.cs (4)
52
TransientTestFile inlineTask = env.
CreateFile
(folder, "5106.proj", @$"
92
TransientTestFile assemblyProj = env.
CreateFile
(folder, "5106.csproj", @$"
105
TransientTestFile csFile = env.
CreateFile
(folder, "Class1.cs", @"
119
TransientTestFile inlineTask = env.
CreateFile
(folder, "5106.proj", @$"
TestAssemblyInfo.cs (4)
78
_testEnvironment.
CreateFile
(
84
_testEnvironment.
CreateFile
(
89
_testEnvironment.
CreateFile
(
94
_testEnvironment.
CreateFile
(
Unzip_Tests.cs (24)
31
TransientTestFile file1 = testEnvironment.
CreateFile
(source, "638AF4AE88A146E09CB69FE1CA7083DC.txt", "file1");
59
testEnvironment.
CreateFile
(source, "BE78A17D30144B549D21F71D5C633F7D.txt", "file1");
60
testEnvironment.
CreateFile
(source, "A04FF4B88DF14860B7C73A8E75A4FB76.txt", "file2");
113
testEnvironment.
CreateFile
(source, "BE78A17D30144B549D21F71D5C633F7D.txt", "file1");
114
testEnvironment.
CreateFile
(source, "A04FF4B88DF14860B7C73A8E75A4FB76.txt", "file2");
184
TransientTestFile file1 = testEnvironment.
CreateFile
(source, "D6DFD219DACE48F8B86EFCDF98433333.txt", "file1");
254
testEnvironment.
CreateFile
(source, "BE78A17D30144B549D21F71D5C633F7D.txt", "file1");
255
testEnvironment.
CreateFile
(source, "A04FF4B88DF14860B7C73A8E75A4FB76.txt", "file2");
283
testEnvironment.
CreateFile
(source, "BE78A17D30144B549D21F71D5C633F7D.txt", "file1");
284
testEnvironment.
CreateFile
(source, "A04FF4B88DF14860B7C73A8E75A4FB76.txt", "file2");
313
testEnvironment.
CreateFile
(source, "file1.js", "file1");
314
testEnvironment.
CreateFile
(source, "file1.js.map", "file2");
315
testEnvironment.
CreateFile
(source, "file2.js", "file3");
316
testEnvironment.
CreateFile
(source, "readme.txt", "file4");
317
testEnvironment.
CreateFile
(sub, "subfile.js", "File5");
349
testEnvironment.
CreateFile
(source, "BE78A17D30144B549D21F71D5C633F7D.txt", "file1");
350
testEnvironment.
CreateFile
(source, "A04FF4B88DF14860B7C73A8E75A4FB76.txt", "file2");
377
testEnvironment.
CreateFile
(source, "BE78A17D30144B549D21F71D5C633F7D.txt", "file1");
378
testEnvironment.
CreateFile
(source, "A04FF4B88DF14860B7C73A8E75A4FB76.txt", "file2");
405
testEnvironment.
CreateFile
(source, "BE78A17D30144B549D21F71D5C633F7D.txt", "file1");
406
testEnvironment.
CreateFile
(source, "A04FF4B88DF14860B7C73A8E75A4FB76.txt", "file2");
433
testEnvironment.
CreateFile
(source, "BE78A17D30144B549D21F71D5C633F7D.txt", "file1");
434
testEnvironment.
CreateFile
(source, "A04FF4B88DF14860B7C73A8E75A4FB76.txt", "file2");
460
var sourceFile = testEnvironment.
CreateFile
(source, executableName, "Dummy executable");
ZipDirectory_Tests.cs (5)
29
testEnvironment.
CreateFile
(sourceFolder, "6DE6060259C44DB6B145159376751C22.txt", "6DE6060259C44DB6B145159376751C22");
30
testEnvironment.
CreateFile
(sourceFolder, "CDA3DD8C25A54A7CAC638A444CB1EAD0.txt", "CDA3DD8C25A54A7CAC638A444CB1EAD0");
70
testEnvironment.
CreateFile
(sourceFolder, "F1C22D660B0D4DAAA296C1B980320B03.txt", "F1C22D660B0D4DAAA296C1B980320B03");
71
testEnvironment.
CreateFile
(sourceFolder, "AA825D1CB154492BAA58E1002CE1DFEB.txt", "AA825D1CB154492BAA58E1002CE1DFEB");
73
TransientTestFile file = testEnvironment.
CreateFile
(testEnvironment.DefaultTestDirectory, "test.zip", contents: "test");
Microsoft.Build.UnitTests.Shared (1)
TestEnvironment.cs (1)
218
return
CreateFile
(DefaultTestDirectory, fileName, contents);
Microsoft.Build.Utilities.UnitTests (4)
TestAssemblyInfo.cs (4)
78
_testEnvironment.
CreateFile
(
84
_testEnvironment.
CreateFile
(
89
_testEnvironment.
CreateFile
(
94
_testEnvironment.
CreateFile
(