1 write to TestRoot
Msbuild.Tests.Utilities (1)
TestSetup.cs (1)
28
TestRoot
= testRoot;
104 references to TestRoot
dotnet.Tests (100)
CommandTests\Reference\Add\GivenDotnetAddReference.cs (54)
132
.WithWorkingDirectory(setup.
TestRoot
)
145
string brokenFolder = Path.Combine(setup.
TestRoot
, "Broken");
160
.WithWorkingDirectory(setup.
TestRoot
)
172
var workingDir = Path.Combine(setup.
TestRoot
, "MoreThanOne");
187
.WithWorkingDirectory(setup.
TestRoot
)
190
cmd.StdErr.Should().Be(string.Format(CliStrings.CouldNotFindAnyProjectInDirectory, setup.
TestRoot
+ Path.DirectorySeparatorChar));
221
var lib = NewLibWithFrameworks(dir: setup.
TestRoot
);
225
.WithWorkingDirectory(setup.
TestRoot
)
239
var lib = NewLibWithFrameworks(dir: setup.
TestRoot
);
243
.WithWorkingDirectory(setup.
TestRoot
)
257
var lib = NewLibWithFrameworks(dir: setup.
TestRoot
);
260
.WithWorkingDirectory(setup.
TestRoot
)
279
var lib = NewLibWithFrameworks(dir: setup.
TestRoot
);
282
.WithWorkingDirectory(setup.
TestRoot
)
288
.WithWorkingDirectory(setup.
TestRoot
)
301
var lib = NewLibWithFrameworks(dir: setup.
TestRoot
);
304
.WithWorkingDirectory(setup.
TestRoot
)
310
.WithWorkingDirectory(setup.
TestRoot
)
323
var lib = NewLibWithFrameworks(dir: setup.
TestRoot
);
326
.WithWorkingDirectory(setup.
TestRoot
)
332
.WithWorkingDirectory(setup.
TestRoot
)
345
var lib = NewLibWithFrameworks(dir: setup.
TestRoot
);
348
.WithWorkingDirectory(setup.
TestRoot
)
368
var proj = new ProjDir(Path.Combine(setup.
TestRoot
, "WithExistingRefCondOnItem"));
383
var lib = NewLibWithFrameworks(dir: setup.
TestRoot
);
386
.WithWorkingDirectory(setup.
TestRoot
)
392
.WithWorkingDirectory(setup.
TestRoot
)
403
var proj = new ProjDir(Path.Combine(setup.
TestRoot
, "WithExistingRefCondWhitespaces"));
418
var proj = new ProjDir(Path.Combine(setup.
TestRoot
, "WithRefNoCondNonUniform"));
433
var proj = new ProjDir(Path.Combine(setup.
TestRoot
, "WithRefNoCondNonUniform"));
437
.WithWorkingDirectory(setup.
TestRoot
)
450
var proj = new ProjDir(Path.Combine(setup.
TestRoot
, "WithRefCondNonUniform"));
465
var proj = new ProjDir(Path.Combine(setup.
TestRoot
, "WithRefCondNonUniform"));
469
.WithWorkingDirectory(setup.
TestRoot
)
482
var proj = new ProjDir(Path.Combine(setup.
TestRoot
, "EmptyItemGroup"));
486
.WithWorkingDirectory(setup.
TestRoot
)
502
var lib = NewLibWithFrameworks(dir: setup.
TestRoot
);
506
.WithWorkingDirectory(setup.
TestRoot
)
523
var lib = NewLibWithFrameworks(dir: setup.
TestRoot
);
527
.WithWorkingDirectory(setup.
TestRoot
)
541
var lib = NewLibWithFrameworks(dir: setup.
TestRoot
);
577
.WithWorkingDirectory(setup.
TestRoot
)
588
var lib = NewLibWithFrameworks(dir: setup.
TestRoot
);
610
.WithWorkingDirectory(setup.
TestRoot
)
625
var net45lib = new ProjDir(Path.Combine(setup.
TestRoot
, "Net45Lib"));
642
var net452netcoreapp10lib = new ProjDir(Path.Combine(setup.
TestRoot
, "Net452AndNetCoreApp10Lib"));
664
var net45lib = new ProjDir(Path.Combine(setup.
TestRoot
, "Net45Lib"));
682
var net45lib = new ProjDir(Path.Combine(setup.
TestRoot
, "Net45Lib"));
705
var lib = NewLibWithFrameworks(dir: setup.
TestRoot
);
708
.WithWorkingDirectory(setup.
TestRoot
)
720
var lib = NewLibWithFrameworks(dir: setup.
TestRoot
);
724
.WithWorkingDirectory(setup.
TestRoot
)
736
var lib = NewLibWithFrameworks(dir: setup.
TestRoot
);
740
.WithWorkingDirectory(setup.
TestRoot
)
CommandTests\Reference\List\GivenDotnetListReference.cs (6)
87
.WithWorkingDirectory(setup.
TestRoot
)
100
string brokenFolder = Path.Combine(setup.
TestRoot
, "Broken");
116
.WithWorkingDirectory(setup.
TestRoot
)
128
var workingDir = Path.Combine(setup.
TestRoot
, "MoreThanOne");
143
.WithWorkingDirectory(setup.
TestRoot
)
146
cmd.StdErr.Should().Be(string.Format(CliStrings.CouldNotFindAnyProjectInDirectory, setup.
TestRoot
+ Path.DirectorySeparatorChar));
CommandTests\Reference\Remove\GivenDotnetRemoveP2P.cs (40)
111
.WithWorkingDirectory(setup.
TestRoot
)
123
.WithWorkingDirectory(setup.
TestRoot
)
177
.WithWorkingDirectory(setup.
TestRoot
)
190
string brokenFolder = Path.Combine(setup.
TestRoot
, "Broken");
206
.WithWorkingDirectory(setup.
TestRoot
)
218
var workingDir = Path.Combine(setup.
TestRoot
, "MoreThanOne");
233
.WithWorkingDirectory(setup.
TestRoot
)
236
cmd.StdErr.Should().Be(string.Format(CliStrings.CouldNotFindAnyProjectInDirectory, setup.
TestRoot
+ Path.DirectorySeparatorChar));
244
var lib = NewLibWithFrameworks(setup.
TestRoot
);
250
.WithWorkingDirectory(setup.
TestRoot
)
263
var lib = NewLibWithFrameworks(setup.
TestRoot
);
269
.WithWorkingDirectory(setup.
TestRoot
)
282
var lib = NewLibWithFrameworks(setup.
TestRoot
);
289
.WithWorkingDirectory(setup.
TestRoot
)
302
var lib = NewLibWithFrameworks(setup.
TestRoot
);
308
.WithWorkingDirectory(setup.
TestRoot
)
319
var lib = NewLibWithFrameworks(setup.
TestRoot
);
325
.WithWorkingDirectory(setup.
TestRoot
)
336
var lib = NewLibWithFrameworks(setup.
TestRoot
);
345
.WithWorkingDirectory(setup.
TestRoot
)
361
var lib = NewLibWithFrameworks(setup.
TestRoot
);
370
.WithWorkingDirectory(setup.
TestRoot
)
386
var lib = NewLibWithFrameworks(setup.
TestRoot
);
395
.WithWorkingDirectory(setup.
TestRoot
)
411
var proj = new ProjDir(Path.Combine(setup.
TestRoot
, "WithDoubledRef"));
420
.WithWorkingDirectory(setup.
TestRoot
)
459
.WithWorkingDirectory(setup.
TestRoot
)
478
.WithWorkingDirectory(setup.
TestRoot
)
491
var lib = NewLibWithFrameworks(setup.
TestRoot
);
501
.WithWorkingDirectory(setup.
TestRoot
)
515
var lib = NewLibWithFrameworks(setup.
TestRoot
);
525
.WithWorkingDirectory(setup.
TestRoot
)
538
var lib = NewLibWithFrameworks(dir: setup.
TestRoot
);
543
.WithWorkingDirectory(setup.
TestRoot
)
555
var lib = NewLibWithFrameworks(dir: setup.
TestRoot
);
560
.WithWorkingDirectory(setup.
TestRoot
)
565
result.StdErr.Should().Be(string.Format(CliStrings.CouldNotFindAnyProjectInDirectory, Path.Combine(setup.
TestRoot
, reference)));
572
var lib = NewLibWithFrameworks(dir: setup.
TestRoot
);
577
.WithWorkingDirectory(setup.
TestRoot
)
582
result.StdErr.Should().Be(string.Format(CliStrings.MoreThanOneProjectInDirectory, Path.Combine(setup.
TestRoot
, reference)));
Msbuild.Tests.Utilities (4)
TestSetup.cs (4)
14
public string ValidRefDir => Path.Combine(
TestRoot
, ValidRef);
17
public string ValidRefCsprojPath => Path.Combine(
TestRoot
, ValidRefCsprojRelPath);
21
public string LibDir => Path.Combine(
TestRoot
, Lib);
23
public string LibCsprojPath => Path.Combine(
TestRoot
, Lib, LibCsprojName);