4 instantiations of TransientTestFolder
Microsoft.Build.Tasks.UnitTests (1)
Microsoft.Build.UnitTests.Shared (3)
199 references to TransientTestFolder
Microsoft.Build.BuildCheck.UnitTests (13)
Microsoft.Build.CommandLine.UnitTests (16)
Microsoft.Build.Engine.OM.UnitTests (3)
Microsoft.Build.Engine.UnitTests (74)
Construction\SolutionFilter_Tests.cs (8)
52TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: true);
53TransientTestFolder classLibFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "ClassLibrary"), createFolder: true);
54TransientTestFolder classLibSubFolder = testEnvironment.CreateFolder(Path.Combine(classLibFolder.Path, "ClassLibrary"), createFolder: true);
63TransientTestFolder simpleProjectFolder = testEnvironment.CreateFolder(Path.Combine(folder.Path, "SimpleProject"), createFolder: true);
64TransientTestFolder simpleProjectSubFolder = testEnvironment.CreateFolder(Path.Combine(simpleProjectFolder.Path, "SimpleProject"), createFolder: true);
211TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: true);
229TransientTestFolder folder = testEnvironment.CreateFolder(createFolder: true);
230TransientTestFolder 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);
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);
Microsoft.Build.Framework.UnitTests (1)
Microsoft.Build.Tasks.UnitTests (76)
Microsoft.Build.UnitTests.Shared (15)
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)