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