18 references to WithTransientTestState
Microsoft.Build.UnitTests.Shared (18)
EngineTestEnvironment.cs (2)
81
return
WithTransientTestState
(new TransientProjectCollection());
94
=>
WithTransientTestState
(new TransientTestProjectWithFiles(projectFileName, projectContents, files, relativePathFromRootToProject));
TestEnvironment.cs (16)
192
return
WithTransientTestState
(SetTempPath(folder.Path, true));
204
return
WithTransientTestState
(new TransientTempPath(tempPath, deleteTempDirectory));
213
return
WithTransientTestState
(new TransientTestFile(extension, createFile: true, expectedAsOutput: false));
223
return
WithTransientTestState
(new TransientTestFile(transientTestFolder.Path, fileName, contents));
234
return
WithTransientTestState
(new TransientTestFile(transientTestFolder.Path, extension,
246
return
WithTransientTestState
(new TransientTestFile(extension, createFile: false, expectedAsOutput: false));
257
return
WithTransientTestState
(new TransientTestFile(transientTestFolder.Path, extension,
268
return
WithTransientTestState
(new TransientTestFile(extension, createFile: false, expectedAsOutput: true));
279
return
WithTransientTestState
(new TransientTestFile(folderPath, extension, createFile: false, expectedAsOutput: true));
288
var folder =
WithTransientTestState
(new TransientTestFolder(folderPath, createFolder, subfolder));
310
return
WithTransientTestState
(new TransientPrintLineDebugger(this, writer));
319
return
WithTransientTestState
(new TransientPrintLineDebugger(this, OutPutHelperWriter(Output)));
333
return
WithTransientTestState
(new TransientTestEnvironmentVariable(environmentVariableName, newValue));
338
return
WithTransientTestState
(new TransientWorkingDirectory(newWorkingDirectory));
347
return
WithTransientTestState
(transientTestProcess);
357
return
WithTransientTestState
(transient);