54 references to DefaultTestDirectory
Microsoft.Build.CommandLine.UnitTests (2)
XMake_Tests.cs (2)
1258string directory = _env.DefaultTestDirectory.Path; 2534string binLogLocation = _env.DefaultTestDirectory.Path;
Microsoft.Build.Engine.UnitTests (35)
BinaryLogger_Tests.cs (2)
476TransientTestFolder testFolder = _env.DefaultTestDirectory.CreateDirectory("TestDir"); 477TransientTestFolder testFolder2 = _env.DefaultTestDirectory.CreateDirectory("TestDir2");
Definition\ProjectEvaluationContext_Tests.cs (23)
123{Path.Combine(_env.DefaultTestDirectory.Path, "1.file"), 1}, 124{Path.Combine(_env.DefaultTestDirectory.Path, "2.file"), 1} 181{ _env.DefaultTestDirectory.Path, 1}, 182{ Path.Combine(_env.DefaultTestDirectory.Path, "1.file"), 2 } 187{ _env.DefaultTestDirectory.Path, 1 } 372var projectDirectory = _env.DefaultTestDirectory.Path; 431var projectDirectory1 = _env.DefaultTestDirectory.CreateDirectory("1").Path; 432var projectDirectory2 = _env.DefaultTestDirectory.CreateDirectory("2").Path; 481var project1Root = _env.DefaultTestDirectory.CreateDirectory("Project1"); 485var project2Root = _env.DefaultTestDirectory.CreateDirectory("Project2"); 546var project1Directory = _env.DefaultTestDirectory.CreateDirectory("Project1"); 549var project2Directory = _env.DefaultTestDirectory.CreateDirectory("Project2"); 608var globDirectory = _env.DefaultTestDirectory.CreateDirectory("glob"); 610var projectRoot = _env.DefaultTestDirectory.CreateDirectory("proj"); 682var testDirectory = _env.DefaultTestDirectory; 757var projectDirectory = _env.DefaultTestDirectory.Path; 800var projectDirectory = _env.DefaultTestDirectory.Path; 851var subdirectory = _env.DefaultTestDirectory.CreateDirectory("subDirectory"); 853_env.DefaultTestDirectory.CreateFile("a"); 883: _env.DefaultTestDirectory.Path); 907var subdirectory = _env.DefaultTestDirectory.CreateDirectory("subDirectory"); 909var rootFile = _env.DefaultTestDirectory.CreateFile("a"); 958projectContents.Select((p, i) => new ProjectSpecification(Path.Combine(_env.DefaultTestDirectory.Path, $"Project{i}.proj"), p)),
Graph\ProjectGraph_Tests.cs (8)
843string project1Path = Path.Combine(env.DefaultTestDirectory.Path, "Project1.csproj"); 844string project2Path = Path.Combine(env.DefaultTestDirectory.Path, "Project2.vcxproj"); 845string project3Path = Path.Combine(env.DefaultTestDirectory.Path, "Project3.vcxproj"); 846string project4Path = Path.Combine(env.DefaultTestDirectory.Path, "Project4.vcxproj"); 847string project5Path = Path.Combine(env.DefaultTestDirectory.Path, "Project5.vcxproj"); 848string project6Path = Path.Combine(env.DefaultTestDirectory.Path, "Project6.wapproj"); 849string project7Path = Path.Combine(env.DefaultTestDirectory.Path, "Project7.csproj"); 850string project8Path = Path.Combine(env.DefaultTestDirectory.Path, "Project8.csproj");
Graph\ResultCacheBasedBuilds_Tests.cs (2)
129var outputCache = _env.DefaultTestDirectory.CreateFile("referenceCache").Path; 462outputCaches[node] = env.DefaultTestDirectory.CreateFile($"OutputCache-{ProjectNumber(node)}").Path;
Microsoft.Build.Tasks.UnitTests (14)
Copy_Tests.cs (7)
194var s0Folder = env.DefaultTestDirectory.CreateDirectory("source0"); 204var s1Folder = env.DefaultTestDirectory.CreateDirectory("source1"); 263var sourceFolder = env.DefaultTestDirectory.CreateDirectory("source"); 1104var sourceFile = FileUtilities.GetTemporaryFile(env.DefaultTestDirectory.Path, null, "src", false); 1105var destinationFile = FileUtilities.GetTemporaryFile(env.DefaultTestDirectory.Path, null, "dst", false); 2524var source = env.DefaultTestDirectory.CreateFile("source.txt", "This is a source file").Path; 2525var existing = env.DefaultTestDirectory.CreateFile("destination.txt", "This is an existing file.").Path;
CreateCSharpManifestResourceName_Tests.cs (2)
456var subfolder = env.DefaultTestDirectory.CreateDirectory("SR1"); 460env.SetCurrentDirectory(env.DefaultTestDirectory.Path);
HintPathResolver_Tests.cs (1)
43var tempfolder = _env.DefaultTestDirectory.CreateDirectory("tempfolder_for_CanResolveLongHintPath");
ResourceHandling\GenerateResource_Tests.cs (2)
3669env.SetCurrentDirectory(env.DefaultTestDirectory.Path); 3675env.CreateFolder(Path.Combine(env.DefaultTestDirectory.Path, "tmp_dir")),
Unzip_Tests.cs (1)
238SourceFiles = new ITaskItem[] { new TaskItem(Path.Combine(testEnvironment.DefaultTestDirectory.Path, "foo.zip")), }
ZipDirectory_Tests.cs (1)
73TransientTestFile file = testEnvironment.CreateFile(testEnvironment.DefaultTestDirectory, "test.zip", contents: "test");
Microsoft.Build.UnitTests.Shared (1)
TestEnvironment.cs (1)
218return CreateFile(DefaultTestDirectory, fileName, contents);
Microsoft.Build.Utilities.UnitTests (2)
ToolLocationHelper_Tests.cs (2)
2504string rootDir = Path.Combine(env.DefaultTestDirectory.Path, "framework-root"); 2533string customFrameworkRootPath = Path.Combine(env.DefaultTestDirectory.Path, "framework-root");