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