1 write to Log
Microsoft.NET.TestFramework (1)
SdkTest.cs (1)
16Log = log;
1449 references to Log
dotnet.Tests (847)
CommandFactoryTests\GivenAProjectDependencyCommandResolver.cs (3)
33new DotnetBuildCommand(Log) 68new DotnetBuildCommand(Log) 146new DotnetBuildCommand(Log)
CommandFactoryTests\GivenAProjectToolsCommandResolver.cs (14)
90testInstance.Restore(Log); 114testInstance.Restore(Log); 144testInstance.Restore(Log); 169testInstance.Restore(Log); 196testInstance.Restore(Log); 224testInstance.Restore(Log); 270testInstance.Restore(Log); 307testInstance.Restore(Log); 338new DotnetRestoreCommand(Log) 344new DotnetCommand(Log) 364new DotnetRestoreCommand(Log) 373new DotnetCommand(Log) 379new DotnetCommand(Log) 389new DotnetRestoreCommand(Log)
CommandTests\Build\GivenDotnetBuildBuildsCsproj.cs (23)
23var buildCommand = new DotnetBuildCommand(Log, testInstance.Path); 35var outputRunCommand = new DotnetCommand(Log); 49new DotnetBuildCommand(Log, testInstance.Path) 64new DotnetBuildCommand(Log, testInstance.Path) 79new DotnetBuildCommand(Log, projectDirectory) 91new DotnetBuildCommand(Log) 109new DotnetBuildCommand(Log) 125new DotnetRestoreCommand(Log) 132new DotnetBuildCommand(Log) 144var outputRunCommand = new DotnetCommand(Log); 157.Restore(Log); 163var cmd = new DotnetBuildCommand(Log) 175.Restore(Log); 177var cmd = new DotnetBuildCommand(Log) 195.Restore(Log); 197new DotnetBuildCommand(Log) 218new DotnetBuildCommand(Log) 235.Restore(Log); 237new DotnetCommand(Log) 252.Restore(Log); 254new DotnetBuildCommand(Log) 278new DotnetBuildCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name ?? string.Empty)) 309new DotnetCommand(Log)
CommandTests\Build\GivenDotnetBuildBuildsDcproj.cs (2)
18.Restore(Log); 24var cmd = new DotnetBuildCommand(Log)
CommandTests\BuildServer\Shutdown\BuildServerShutdownCommandTests.cs (1)
183new BuildServerCommand(Log)
CommandTests\Clean\GivenDotnetCleanCleansBuildArtifacts.cs (2)
19new DotnetBuildCommand(Log, testInstance.Path) 28new DotnetCommand(Log, "clean", testInstance.Path)
CommandTests\CommandIntegrationTests.cs (2)
13var cmd = new DotnetCommand(Log).Execute(string.Empty); 20var cmd = new DotnetCommand(Log).Execute("-d");
CommandTests\Format\GivenDotnetFormatExecutesAndGeneratesHelpText.cs (1)
15new DotnetCommand(Log, "format")
CommandTests\Fsi\GivenDotnetFsiExecutesAndGeneratesHelpText.cs (1)
15new DotnetCommand(Log, "fsi")
CommandTests\Help\GivenThatIWantToShowHelpForDotnetCommand.cs (4)
67var cmd = new DotnetCommand(Log) 76var cmd = new DotnetCommand(Log, "help") 85var cmd = new DotnetCommand(Log) 98var cmd = new DotnetCommand(Log)
CommandTests\Help\GivenThatIWantToShowHelpForDotnetHelpCommand.cs (1)
32var cmd = new DotnetCommand(Log, "help")
CommandTests\MSBuild\GivenDotnetMSBuildBuildsProjects.cs (6)
26new MSBuildCommand(Log, "SayHello", testProjectDirectory) 33new MSBuildCommand(Log, "SayGoodbye", testProjectDirectory) 40new DotnetCommand(Log) 60var result = new DotnetCommand(Log) 87var result = new DotnetCommand(Log) 102var result = new DotnetCommand(Log)
CommandTests\MSBuild\GivenDotnetOsArchOptions.cs (2)
121new DotnetCommand(Log) 138new DotnetCommand(Log)
CommandTests\MSBuild\GivenMsbuildForwardingApp.cs (1)
77Log.WriteLine("StartInfo DOTNET_CLI_TELEMETRY_SESSIONID: " + sessionId);
CommandTests\NuGet\GivenANuGetCommand.cs (5)
106new DotnetCommand(Log, "nuget") 130new DotnetCommand(Log) 151new DotnetCommand(Log, "package", "add", "dotnet-hello@1.0.0") 159var commandResult = new DotnetCommand(Log, "package", "update", "dotnet-hello") 167var listPackageCommandResult = new DotnetCommand(Log, "package", "list", "--format", "json")
CommandTests\Pack\PackTests.cs (21)
22var packCommand = new DotnetPackCommand(Log) 46var packCommand = new DotnetPackCommand(Log) 64new DotnetPackCommand(Log) 91new DotnetPackCommand(Log) 114new DotnetPackCommand(Log) 150new DotnetPackCommand(Log) 162new DotnetPackCommand(Log) 174var result = new DotnetPackCommand(Log) 192new DotnetPackCommand(Log) 205var packCommand = new DotnetPackCommand(Log) 241new DotnetNewCommand(Log, "console", "-o", rootPath, "--no-restore") 248new DotnetRestoreCommand(Log, rootPath) 253new DotnetPackCommand(Log) 269var result = new DotnetPackCommand(Log) 287var result = new DotnetPackCommand(Log) 301var result = new DotnetPackCommand(Log) 330var result = new DotnetPackCommand(Log) 346var result = new DotnetPackCommand(Log) 381var result = new DotnetPackCommand(Log) 405var result = new DotnetPackCommand(Log) 428var result = new DotnetPackCommand(Log)
CommandTests\Package\Add\GivenDotnetPackageAdd.cs (24)
26var cmd = new DotnetCommand(Log) 65var cmd = new DotnetCommand(Log) 95var cmd = new DotnetCommand(Log) 120var cmd = new DotnetCommand(Log) 140var cmd = new DotnetCommand(Log) 164var cmd = new DotnetCommand(Log) 188var cmd = new DotnetCommand(Log) 210var cmd = new DotnetCommand(Log) 231var cmd = new DotnetCommand(Log) 248var cmd = new DotnetCommand(Log) 263var cmd = new DotnetCommand(Log) 284var cmd = new DotnetCommand(Log) 302new DotnetCommand(Log, "package", "add", "Humanizer@2.14.1", "--file", "Program.cs") 327new DotnetCommand(Log, "package", "add", "Humanizer@2.14.1", "--file", "Program.cs") 354var cmd = new DotnetCommand(Log, "package", "add", "A", "--file", "Program.cs") 391var cmd = new DotnetCommand(Log, "package", "add", "A", "--prerelease", "--file", "Program.cs") 412new DotnetCommand(Log, "package", "add", "Humanizer", "--file", "Program.cs", "--no-restore") 434new DotnetCommand(Log, "package", "add", "Humanizer@2.14.1", "--file", "Program.cs", "--prerelease") 453new DotnetCommand(Log, "package", "add", "Microsoft.ThisPackageDoesNotExist", "--file", "Program.cs") 470new DotnetCommand(Log, "package", "add", "Microsoft.ThisPackageDoesNotExist", "--file", "Program.cs", "--no-restore") 501new DotnetCommand(Log, "package", "add", "Humanizer@2.14.1", "--file", "Program.cs") 556new DotnetCommand(Log, "package", "add", "Humanizer@2.14.1", "--file", "Program.cs") 605new DotnetCommand(Log, "package", "add", "A", "--file", "Program.cs") 651new DotnetCommand(Log, "package", "add", "Humanizer", "--file", "Program.cs")
CommandTests\Package\List\GivenDotnetListPackage.cs (17)
31new ListPackageCommand(Log) 52var cmd = new DotnetCommand(Log) 63new ListPackageCommand(Log) 88new ListPackageCommand(Log) 120new ListPackageCommand(Log) 139new ListPackageCommand(Log) 156new ListPackageCommand(Log) 212new ListPackageCommand(Log) 220new ListPackageCommand(Log) 256new ListPackageCommand(Log) 266new ListPackageCommand(Log) 292new ListPackageCommand(Log) 314new ListPackageCommand(Log) 378new ListPackageCommand(Log) 400new ListPackageCommand(Log) 423new ListPackageCommand(Log) 450new ListPackageCommand(Log)
CommandTests\Package\Remove\GivenDotnetPackageRemove.cs (6)
17new DotnetCommand(Log) 23new DotnetCommand(Log) 39new DotnetCommand(Log) 45new DotnetCommand(Log) 61new DotnetCommand(Log) 76new DotnetCommand(Log)
CommandTests\Package\Remove\GivenDotnetRemovePackage.cs (7)
50var cmd = new DotnetCommand(Log).Execute($"remove", "package", helpArg); 60var cmd = new DotnetCommand(Log) 74var add = new DotnetCommand(Log) 80var remove = new DotnetCommand(Log) 100new DotnetCommand(Log, "package", "remove", "Humanizer", "--file", "Program.cs") 125new DotnetCommand(Log, "package", "remove", "Humanizer", "--file", "Program.cs") 148new DotnetCommand(Log, "package", "remove", "Humanizer", "--file", "Program.cs")
CommandTests\Project\Convert\DotnetProjectConvertTests.cs (29)
29new DotnetCommand(Log, "project", "convert", "Program.cs") 49new DotnetCommand(Log, "new", "console") 75new DotnetCommand(Log, "project", "convert", "MyApp.cs") 93new DotnetCommand(Log, "project", "convert", "MyApp.cs", "-o", "MyApp1") 118new DotnetCommand(Log, "project", "convert", "MyApp.cs", "-o", "SomeOutput") 136new DotnetCommand(Log, "project", "convert", "Program1.cs") 155new DotnetCommand(Log, "project", "convert") 170new DotnetCommand(Log, "project", "convert", "NotHere.cs") 187new DotnetCommand(Log, "project", "convert", "Program.vb") 204new DotnetCommand(Log, "project", "convert", "Program.CS") 226new DotnetCommand(Log, "project", "convert", "Program.cs") 254new DotnetCommand(Log, "project", "convert", "app/Program.cs") 284new DotnetCommand(Log, "project", "convert", "Program.cs") 314new DotnetCommand(Log, "project", "convert", "Program.cs") 340new DotnetCommand(Log, "project", "convert", "Program.cs") 377new DotnetCommand(Log, "project", "convert", "Program.cs") 412new DotnetCommand(Log, "run", "Program.cs") 419new DotnetCommand(Log, "project", "convert", "Program.cs") 434new DotnetCommand(Log, "run", "Program/Program.cs") 463new DotnetCommand(Log, "run", "Program.cs") 470new DotnetCommand(Log, "project", "convert", "Program.cs") 484new DotnetCommand(Log, "run", "Program/Program.cs") 513new DotnetCommand(Log, "run", "Program.cs") 520new DotnetCommand(Log, "project", "convert", "Program.cs") 534new DotnetCommand(Log, "run", "Program/Program.cs") 559new DotnetCommand(Log, "project", "convert", "Program.cs") 586new DotnetCommand(Log, "project", "convert", "Program.cs") 607new DotnetCommand(Log, "project", "convert", "Program.cs") 631new DotnetCommand(Log, "project", "convert", "Program.cs")
CommandTests\Publish\GivenDotnetPublishPublishesProjects.cs (26)
33new DotnetPublishCommand(Log) 41new DotnetCommand(Log) 56new DotnetPublishCommand(Log) 72new DotnetPublishCommand(Log) 87new DotnetPublishCommand(Log) 102.Restore(Log); 106new DotnetCommand(Log) 126new RunExeCommand(Log, outputProgram) 145new RunExeCommand(Log, outputProgram) 174var publishCommand = new DotnetCommand(Log); 231var command = new RunExeCommand(Log, outputProgram); 257new DotnetCommand(Log) 278new DotnetPublishCommand(Log) 293new DotnetPublishCommand(Log) 311.Restore(Log); 315new DotnetPublishCommand(Log) 324new DotnetCommand(Log, outputProgram) 335.Restore(Log); 339new DotnetPublishCommand(Log) 361new DotnetBuildCommand(Log, rootPath) 366new DotnetPublishCommand(Log, "--no-build") 376new DotnetCommand(Log, outputProgram) 396new DotnetPublishCommand(Log) 409var cmd = new DotnetPublishCommand(Log) 426.Restore(Log); 430new DotnetPublishCommand(Log)
CommandTests\Reference\Add\GivenDotnetAddReference.cs (43)
72new DotnetNewCommand(Log, "classlib", "-o", projDir.Path, "--no-restore") 105var cmd = new DotnetCommand(Log, "reference", "add").Execute(helpArg); 117var cmd = new DotnetCommand(Log, "add", "one", "two", "three", "reference") 131var cmd = new DotnetCommand(Log, "add", projName, "reference") 159var cmd = new DotnetCommand(Log, "add", projName, "reference") 173var cmd = new DotnetCommand(Log, "add", "reference") 186var cmd = new DotnetCommand(Log, "add", "reference") 207var cmd = new DotnetCommand(Log, "add", "reference", invalidProjPath) 224var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 242var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 259new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 265var cmd = new DotnetCommand(Log, "add", lib.CsProjName, "reference") 281new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 287var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 303new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 309var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 325new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 331var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 347new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 353var cmd = new DotnetCommand(Log, "add", lib.CsProjName, "reference") 371var cmd = new DotnetCommand(Log, "add", proj.CsProjPath, "reference") 385new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 391var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 406var cmd = new DotnetCommand(Log, "add", proj.CsProjName, "reference") 421var cmd = new DotnetCommand(Log, "add", proj.CsProjName, "reference") 436var cmd = new DotnetCommand(Log, "add", proj.CsProjPath, "reference") 453var cmd = new DotnetCommand(Log, "add", proj.CsProjName, "reference") 468var cmd = new DotnetCommand(Log, "add", proj.CsProjPath, "reference") 485var cmd = new DotnetCommand(Log, "add", proj.CsProjPath, "reference") 505var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 526var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 544var cmd = new DotnetCommand(Log, "add", "reference") 561var cmd = new DotnetCommand(Log, "add", lib.CsProjName, "reference") 576var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 591var cmd = new DotnetCommand(Log, "add", lib.CsProjName, "reference") 609var cmd = new DotnetCommand(Log, "add", setup.LibCsprojPath, "reference") 628var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 645var cmd = new DotnetCommand(Log, "add", net452netcoreapp10lib.CsProjPath, "reference") 667var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 693var cmd = new DotnetCommand(Log, "add", net45lib.CsProjPath, "reference") 707var result = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 723var result = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 739var result = new DotnetCommand(Log, "add", lib.CsProjPath, "reference")
CommandTests\Reference\List\GivenDotnetListReference.cs (13)
52var cmd = new ListReferenceCommand(Log).Execute(helpArg); 62var cmd = new DotnetCommand(Log) 71var cmd = new DotnetCommand(Log, "list one two three reference".Split()) 85var cmd = new ListReferenceCommand(Log) 114var cmd = new ListReferenceCommand(Log) 129var cmd = new ListReferenceCommand(Log) 142var cmd = new ListReferenceCommand(Log) 155var cmd = new ListReferenceCommand(Log) 176var cmd = new ListReferenceCommand(Log) 204var cmd = new ListReferenceCommand(Log) 224var cmd = new ListReferenceCommand(Log) 247new DotnetNewCommand(Log, "classlib", "-o", dir.Path, "--no-restore") 263new DotnetCommand(Log, "add", proj.CsProjPath, "reference")
CommandTests\Reference\Remove\GivenDotnetRemoveP2P.cs (27)
73new DotnetNewCommand(Log) 109new AddReferenceCommand(Log) 121new AddReferenceCommand(Log) 135var cmd = new RemoveReferenceCommand(Log).Execute(helpArg); 152var cmd = new DotnetCommand(Log) 161var cmd = new DotnetCommand(Log, "add", "one", "two", "three", "reference", "proj.csproj") 175var cmd = new RemoveReferenceCommand(Log) 204var cmd = new RemoveReferenceCommand(Log) 219var cmd = new RemoveReferenceCommand(Log) 232var cmd = new RemoveReferenceCommand(Log) 248var cmd = new RemoveReferenceCommand(Log) 267var cmd = new RemoveReferenceCommand(Log) 287var cmd = new RemoveReferenceCommand(Log) 306var cmd = new RemoveReferenceCommand(Log) 323var cmd = new RemoveReferenceCommand(Log) 343var cmd = new RemoveReferenceCommand(Log) 368var cmd = new RemoveReferenceCommand(Log) 393var cmd = new RemoveReferenceCommand(Log) 418var cmd = new RemoveReferenceCommand(Log) 438var cmd = new RemoveReferenceCommand(Log) 457var cmd = new RemoveReferenceCommand(Log) 476var cmd = new RemoveReferenceCommand(Log) 499var cmd = new RemoveReferenceCommand(Log) 523var cmd = new RemoveReferenceCommand(Log) 541var result = new RemoveReferenceCommand(Log) 558var result = new RemoveReferenceCommand(Log) 575var result = new RemoveReferenceCommand(Log)
CommandTests\Restore\GivenThatIWantToRestoreApp.cs (10)
34new DotnetRestoreCommand(Log) 74new DotnetRestoreCommand(Log) 90Log.WriteLine("Assets file contents:"); 91Log.WriteLine(File.ReadAllText(Path.Combine(rootPath, "obj", "project.assets.json"))); 113new DotnetRestoreCommand(Log) 135new DotnetNewCommand(Log) 144new DotnetRestoreCommand(Log) 159new DotnetNewCommand(Log) 167new DotnetRestoreCommand(Log) 200var restoreCommand = new DotnetRestoreCommand(Log)
CommandTests\Run\FileBasedAppSourceEditorTests.cs (5)
465Log.WriteLine("Expected output:\n---"); 466Log.WriteLine(expectedOutput); 467Log.WriteLine("---\nActual output:\n---"); 468Log.WriteLine(actualOutput); 469Log.WriteLine("---");
CommandTests\Run\GivenDotnetRootEnv.cs (3)
27var runCommand = new DotnetCommand(Log, "run") 47var runCommand = new DotnetCommand(Log, "run") 74.Restore(Log);
CommandTests\Run\GivenDotnetRunBuildsCsProj.cs (58)
31new DotnetCommand(Log, "run") 47new DotnetCommand(Log, "run") 64new DotnetCommand(Log, "run") 78var result = new DotnetCommand(Log, "run") 98new DotnetCommand(Log, "run") 114new DotnetCommand(Log, "run") 130new DotnetCommand(Log, "run") 147new DotnetCommand(Log, "run") 163new DotnetCommand(Log, "run") 180new DotnetCommand(Log, "run") 197new DotnetCommand(Log, "run") 210new DotnetCommand(Log, "run") 227new DotnetNewCommand(Log) 234new DotnetRestoreCommand(Log) 240new DotnetCommand(Log, "run") 256new DotnetCommand(Log, "run") 272new DotnetCommand(Log, "run") 289new DotnetCommand(Log, "run") 306new DotnetCommand(Log, "run") 323new DotnetCommand(Log, "run") 340new DotnetCommand(Log, "run") 357new DotnetCommand(Log, "run") 374var runResult = new DotnetCommand(Log, "run") 396var cmd = new DotnetCommand(Log, "run") 416var cmd = new DotnetCommand(Log, "run", "--verbosity", "quiet") 437var cmd = new DotnetCommand(Log, "run") 457var cmd = new DotnetCommand(Log, "run") 477var cmd = new DotnetCommand(Log, "run") 497var cmd = new DotnetCommand(Log, "run") 516var cmd = new DotnetCommand(Log, "run") 536var cmd = new DotnetCommand(Log, "run") 555var cmd = new DotnetCommand(Log, "run") 574new DotnetCommand(Log, "run") 591new DotnetCommand(Log, "run") 608var cmd = new DotnetCommand(Log, "run") 627var cmd = new DotnetCommand(Log, "run") 646var cmd = new DotnetCommand(Log, "run") 664var cmd = new DotnetCommand(Log, "run") 680var result = new DotnetCommand(Log, "run") 702var result = new DotnetCommand(Log, "run", "--interactive", "false") 723var result = new DotnetCommand(Log, "run") 739var result = new DotnetCommand(Log, "run", "/v", "d") 755var result = new DotnetCommand(Log, "run") 768var command = new DotnetCommand(Log, "run") 784var result = new DotnetCommand(Log, "run") 799new DotnetCommand(Log, "run") 816new DotnetCommand(Log, "run") 833new DotnetCommand(Log, "run") 850new DotnetCommand(Log, "run") 868new DotnetCommand(Log, "run", "-lp", "Profile2") 887new DotnetCommand(Log, "run") 906new DotnetCommand(Log, "run", "--no-launch-profile-arguments") 926new DotnetCommand(Log, "run", "-- test") 943new DotnetCommand(Log, "run") 960new DotnetCommand(Log, "run", optionName, "MyCoolEnvironmentVariableKey=OverriddenEnvironmentVariableValue") 980new DotnetCommand(Log, "run", "-e", $"{dotnetLaunchProfile}=1", "-e", "ASPNETCORE_URLS=2") 997new DotnetCommand(Log, "run", "-e", "Configuration=XYZ") 1012var result = new DotnetCommand(Log, "run")
CommandTests\Run\GivenDotnetRunBuildsVbProj.cs (7)
24var runResult = new DotnetCommand(Log, "run") 44var runResult = new DotnetCommand(Log, "run") 65new DotnetCommand(Log, "run") 83new DotnetCommand(Log, "run") 104var cmd = new DotnetCommand(Log, "run") 124var cmd = new DotnetCommand(Log, "run") 144new DotnetCommand(Log, "run")
CommandTests\Run\GivenDotnetRunIsInterrupted.cs (9)
28var command = new DotnetCommand(Log, "run", "-v:q") 61Log.WriteLine($"Error while sending SIGINT to child process: {e}"); 69Log.WriteLine($"Got line {line} but was unable to interpret it as a process id - skipping"); 89var command = new DotnetCommand(Log, "run") 116Log.WriteLine($"Error while getting child process Id: {e}"); 124Log.WriteLine($"Got line {line} but was unable to interpret it as a process id - skipping"); 150var command = new DotnetCommand(Log, "run") 177Log.WriteLine($"Error while getting child process Id: {e}"); 185Log.WriteLine($"Got line {line} but was unable to interpret it as a process id - skipping");
CommandTests\Run\GivenDotnetRunThrowsAParseError.cs (1)
15new DotnetCommand(Log, "run")
CommandTests\Run\GivenDotnetRunUsesTargetExtension.cs (2)
26var runResult = new DotnetCommand(Log, "run") 52var runResult = new DotnetCommand(Log, "run")
CommandTests\Run\GivenThatWeCanPassNonProjectFilesToDotnetRun.cs (1)
24new DotnetCommand(Log, "run")
CommandTests\Run\RunFileTests.cs (168)
159var result = new DotnetCommand(Log, "run", path) 187new DotnetCommand(Log, "Program.cs") 205new DotnetCommand(Log, "Program.cs") 211new DotnetCommand(Log, "./Program.cs") 217new DotnetCommand(Log, $".{Path.DirectorySeparatorChar}Program.cs") 223new DotnetCommand(Log, Path.Join(testInstance.Path, "Program.cs")) 229new DotnetCommand(Log, "Program.cs", "-c", "Debug") 237new DotnetCommand(Log, "Program.cs", "arg1", "arg2") 247new DotnetCommand(Log, "Program.cs", "build") 257new DotnetCommand(Log, "Program.cs", "arg1", "arg2") 277var result = new DotnetCommand(Log, "run", "program.cs") 307new DotnetCommand(Log, "run", $"{dirName}/Program.cs") 323new DotnetCommand(Log, "run", "--project", "Program.cs") 351new DotnetCommand(Log, cmd) 358new DotnetCommand(Log, $"./{cmd}") 365new DotnetCommand(Log, "run", cmd) 387new DotnetCommand(Log, arg) 395new DotnetCommand(Log, "run", arg) 413new DotnetCommand(Log, "new", "tool-manifest") 418new DotnetCommand(Log, "tool", "install", "complog@0.7.0") 424new DotnetCommand(Log, "complog") 431new DotnetCommand(Log, "./complog") 438new DotnetCommand(Log, "run", "complog") 451new DotnetCommand(Log, "run", "-") 467new DotnetCommand(Log, "run", "-", "--no-build") 476new DotnetCommand(Log, "run", "-", "--launch-profile=test") 490new DotnetCommand(Log, "run", "--", "-") 513new DotnetCommand(Log, "run", path) 532new DotnetCommand(Log, "run", "./App.csproj") 553new DotnetCommand(Log, "run", "./App.csproj") 572new DotnetCommand(Log, "../file/Program.cs") 590new DotnetCommand(Log, "run", "--file", "../file/Program.cs") 615new DotnetCommand(Log, "run", fileName) 635new DotnetCommand(Log, "run", fileName) 652new DotnetCommand(Log, "run", "Program.cs") 658new DotnetCommand(Log, "run", "Program2.cs") 673new DotnetCommand(Log, "run", "Program.cs") 692new DotnetCommand(Log, "run", "Util.cs") 708new DotnetCommand(Log, "run", "NonExistentFile.cs") 728new DotnetCommand(Log, "run", "Program.cs") 740new DotnetCommand(Log, "run", "Program.cs") 759new DotnetCommand(Log, "run", "Util.cs") 786new DotnetCommand(Log, "run", "Program.cs") 808new DotnetCommand(Log, "run", $"{dirName}/App.csproj") 827new DotnetCommand(Log, "run", "Program.cs") 843new DotnetCommand(Log, "run", "Program.cs") 866new DotnetCommand(Log, "run", "Program.cs") 888new DotnetCommand(Log, "run", "Program.cs") 911new DotnetCommand(Log, "run", "Program.cs") 934new DotnetCommand(Log, ["run", "Program.cs", .. input.Split(';')]) 953new DotnetCommand(Log, ["run", "--arg", "Program.cs"]) 976new DotnetCommand(Log, args) 1000new DotnetCommand(Log, ["run", "--no-cache", .. args]) 1022new DotnetCommand(Log, args) 1047new DotnetCommand(Log, "run", "--no-cache", "Program.cs", arg) 1067new DotnetCommand(Log, "run", "--no-cache", "Program.cs", "-bl:one.binlog", "two.binlog", "/bl:three.binlog") 1088new DotnetCommand(Log, "run", "Program.cs", "-bl:test.test") 1109new DotnetCommand(Log, "run", "Program.cs") 1130new DotnetCommand(Log, "run", "--no-cache", "Program.cs", "-bl") 1154var result = new DotnetCommand(Log, "run", "Program.cs", "--no-cache") 1179new DotnetCommand(Log, "run", "Program.cs", "--no-cache") 1196new DotnetCommand(Log, "build", "Program.cs") 1214new DotnetCommand(Log, "run", "Program.cs") 1226new DotnetCommand(Log, "run", "Program.cs") 1245new DotnetCommand(Log, "run", "Program.cs") 1259new DotnetCommand(Log, "run", "Program.cs") 1284new DotnetCommand(Log, "run", "--no-cache", "--file", "Program.cs") 1303new DotnetCommand(Log, "run", "--no-restore", "Program.cs") 1310new DotnetCommand(Log, "restore", "Program.cs") 1316new DotnetCommand(Log, "run", "--no-restore", "Program.cs") 1335new DotnetCommand(Log, "build", "--no-restore", "Program.cs") 1342new DotnetCommand(Log, "restore", "Program.cs") 1348new DotnetCommand(Log, "build", "--no-restore", "Program.cs") 1353new DotnetCommand(Log, "run", "--no-build", "Program.cs") 1378new DotnetCommand(Log, "restore", "Program.cs") 1398new DotnetCommand(Log, "restore", "Program.cs") 1417new DotnetCommand(Log, "run", "--no-build", "Program.cs") 1424new DotnetCommand(Log, "build", "Program.cs") 1431new DotnetCommand(Log, "run", "--no-build", "Program.cs") 1438new DotnetCommand(Log, "run", "Program.cs") 1457new DotnetCommand(Log, "run", "--no-build", "Program.cs") 1464new DotnetCommand(Log, "run", "Program.cs") 1472new DotnetCommand(Log, "run", "--no-build", "Program.cs") 1479new DotnetCommand(Log, "run", "Program.cs") 1499new DotnetCommand(Log, "publish", "Program.cs") 1508new RunExeCommand(Log, Path.Join(publishDir, "Program", $"Program{Constants.ExeSuffix}")) 1530new DotnetCommand(Log, "publish", "Program.cs", "-t", "ComputeContainerConfig", "-p", "PublishAot=false", "--use-current-runtime") 1565new DotnetCommand(Log, "publish", "Program.cs") 1589new DotnetCommand(Log, "publish", "Program.cs", "-c", "Debug", "-p:PublishAot=false", "-bl") 1614new DotnetCommand(Log, "publish", "MyCustomProgram.cs") 1634new DotnetCommand(Log, "publish", "Program.cs", $"/p:PublishDir={customPublishDir}") 1657new DotnetCommand(Log, "publish", "Program.cs") 1682new DotnetCommand(Log, "publish", "./subdir/Program.cs") 1706new DotnetCommand(Log, "run", "MyFileBasedTool.cs") 1719new DotnetCommand(Log, "pack", "MyFileBasedTool.cs") 1729new DotnetCommand(Log, "tool", "exec", "MyFileBasedTool", "--yes", "--add-source", packageDir.FullName) 1751new DotnetCommand(Log, "run", "MyFileBasedTool.cs") 1764new DotnetCommand(Log, "pack", "MyFileBasedTool.cs") 1773new DotnetCommand(Log, "tool", "exec", "MyFileBasedTool", "--yes", "--add-source", outputDir) 1787new DotnetCommand(Log, "run", "Program.cs") 1799new DotnetCommand(Log, "clean", "Program.cs") 1821new DotnetCommand(Log, "build", "Program.cs") 1835new DotnetCommand(Log, "build", "Program.cs") 1864new DotnetCommand(Log, "run", "-bl", "Program.cs") 1875new DotnetCommand(Log, "run", "-bl", "--no-launch-profile", "Program.cs") 1884new DotnetCommand(Log, "run", "-bl", "-lp", "TestProfile2", "Program.cs") 1911new DotnetCommand(Log, "run", "--no-launch-profile", "Program.cs") 1921new DotnetCommand(Log, "run", "-v", "q", "Program.cs") 1931new DotnetCommand(Log, "run", "-v", "q", "-lp", "TestProfile2", "Program.cs") 1959new DotnetCommand(Log, "run", "-v", "q", "First.cs") 1968new DotnetCommand(Log, "run", "-v", "q", "Second.cs") 1988new DotnetCommand(Log, "run", "Program.cs", "-p:DefineConstants=MY_DEFINE") 2005new DotnetCommand(Log, "run", "Program.cs", "-p:DefineConstants=MY_DEFINE") 2024new DotnetCommand(Log, "run", "Program.cs", "--", "--help") 2056new DotnetCommand(Log, "run", "Program.cs", "--", "--help") 2080new DotnetCommand(Log, "build", "Program.cs") 2095new DotnetCommand(Log, "build", "Program.cs") 2137new DotnetCommand(Log, "run", "Program.cs") 2153new DotnetCommand(Log, "run", "Program.cs") 2165new DotnetCommand(Log, "run", "Program.cs") 2175new DotnetCommand(Log, "run", "Program.cs") 2186new DotnetCommand(Log, "run", "Program.cs") 2212new DotnetCommand(Log, "run", fileName, "-bl", "--no-cache") 2398Log.WriteLine($"Skipping code generation because file does not exist: {nonGeneratedFile.FullName}"); 2407Log.WriteLine($"{codeFilePath.FullName} needs to be updated:"); 2408Log.WriteLine(newText); 2423new DotnetCommand(Log, "run", fileName, "-bl") 2440Log.WriteLine("CSC-only args:"); 2441Log.WriteLine(string.Join(Environment.NewLine, normalizedCscOnlyArgs)); 2442Log.WriteLine("MSBuild args:"); 2443Log.WriteLine(string.Join(Environment.NewLine, msbuildArgsToVerify)); 2496new DotnetCommand(Log, "run", fileName, "-bl") 2509new DotnetCommand(Log, "run", fileName, "-bl", "--no-cache") 2536Log.WriteLine($"File differs between MSBuild and CSC-only runs (if this is expected, find the template in '{nameof(CSharpCompilerCommand)}.cs' and update it): {cscOnlyFile}"); 2540Log.WriteLine("MSBuild file content:"); 2541Log.WriteLine(msbuildFileText); 2542Log.WriteLine("CSC-only file content:"); 2543Log.WriteLine(cscOnlyFileText); 2547Log.WriteLine($"MSBuild file size: {msbuildFileText.Length} chars"); 2548Log.WriteLine($"CSC-only file size: {cscOnlyFileText.Length} chars"); 2668new DotnetCommand(Log, ["run", "Program.cs", "-p:LangVersion=Invalid"]) 2688new DotnetCommand(Log, ["run", programFileName, "-bl", .. args]) 2718new DotnetCommand(Log, "run", "Program.cs", "--no-cache", "--no-build") 2791new DotnetCommand(Log, "run", "Program.cs", "-bl") 2804new DotnetCommand(Log, "run", "Program.cs", "-bl") 2832var cscResult = new DotnetCommand(Log, "run", "Program.cs", "-bl") 2844var msbuildResult = new DotnetCommand(Log, "run", "Program.cs", "-bl") 2883new DotnetCommand(Log, "run", "Program.cs", "-bl") 2902new DotnetCommand(Log, "run", "Program.cs", "-bl") 2924new DotnetCommand(Log, "run", "Program.cs", "-bl", "--no-restore") 2932new DotnetCommand(Log, "run", "Program.cs", "-bl") 2943new DotnetCommand(Log, "run", "Program.cs", "-bl") 3218new DotnetCommand(Log, "run-api") 3288new DotnetCommand(Log, "run-api") 3355new DotnetCommand(Log, "run-api") 3415new DotnetCommand(Log, "run-api") 3440new DotnetCommand(Log, "run-api") 3474new DotnetCommand(Log, "run", "-bl", "Program.cs") 3490new DotnetCommand(Log, "run", "Program.cs") 3508new DotnetCommand(Log, "run", relativePath) 3527new DotnetCommand(Log, "run", filePath) 3544new DotnetCommand(Log, "run", $"./{fileName}") 3562new DotnetCommand(Log, "run", unicodeFileName) 3576new DotnetCommand(Log, "build", "Program.cs", "-getProperty:TargetFramework") 3620var fileBasedResult = new DotnetCommand(Log, [subcommand, "Program.cs", .. args]) 3628var projectBasedResult = new DotnetCommand(Log, [subcommand, .. args]) 3648Log.WriteLine($"File '{file}':"); 3649Log.WriteLine(text);
CommandTests\Sdk\Check\GivenDotnetSdkCheck.cs (1)
41var cmd = new DotnetCommand(Log)
CommandTests\Solution\Add\GivenDotnetSlnAdd.cs (51)
58var cmd = new DotnetCommand(Log) 71var cmd = new DotnetCommand(Log) 82var cmd = new DotnetCommand(Log) 102var cmd = new DotnetCommand(Log) 122var cmd = new DotnetCommand(Log) 149var cmd = new DotnetCommand(Log) 169var cmd = new DotnetCommand(Log) 188var cmd = new DotnetCommand(Log) 207var cmd = new DotnetCommand(Log) 229var cmd = new DotnetCommand(Log) 243cmd = new DotnetCommand(Log) 269cmd = new DotnetCommand(Log) 276cmd = new DotnetCommand(Log) 284cmd = new DotnetCommand(Log) 290cmd = new DotnetCommand(Log) 310cmd = new DotnetCommand(Log) 318cmd = new DotnetCommand(Log) 340var cmd = new DotnetCommand(Log) 370var cmd = new DotnetCommand(Log) 399var cmd = new DotnetCommand(Log) 425var cmd = new DotnetCommand(Log) 453var cmd = new DotnetCommand(Log) 459cmd = new DotnetBuildCommand(Log, $"App{solutionExtension}") 480var cmd = new DotnetCommand(Log) 523var cmd = new DotnetCommand(Log) 559var cmd = new DotnetCommand(Log) 578var cmd = new DotnetCommand(Log) 632var cmd = new DotnetCommand(Log) 660var cmd = new DotnetCommand(Log) 667new DotnetCommand(Log) 672new DotnetCommand(Log) 706var cmd = new DotnetCommand(Log) 729var cmd = new DotnetCommand(Log) 753var cmd = new DotnetCommand(Log) 788var cmd = new DotnetCommand(Log) 818var cmd = new DotnetCommand(Log) 845var cmd = new DotnetCommand(Log) 866var cmd = new DotnetCommand(Log) 890var result = new DotnetCommand(Log) 915var result = new DotnetCommand(Log) 940var result = new DotnetCommand(Log) 965new DotnetCommand(Log) 988new DotnetCommand(Log) 1012new DotnetCommand(Log) 1033var cmd = new DotnetCommand(Log) 1061var cmd = new DotnetCommand(Log) 1092var cmd = new DotnetCommand(Log) 1121var cmd = new DotnetCommand(Log) 1148var cmd = new DotnetCommand(Log) 1175var cmd = new DotnetCommand(Log) 1296var cmd = new DotnetCommand(Log)
CommandTests\Solution\List\GivenDotnetSlnList.cs (14)
36var cmd = new DotnetCommand(Log) 49var cmd = new DotnetCommand(Log) 60var cmd = new DotnetCommand(Log) 80var cmd = new DotnetCommand(Log) 97var cmd = new DotnetCommand(Log) 123var cmd = new DotnetCommand(Log) 143var cmd = new DotnetCommand(Log) 161var cmd = new DotnetCommand(Log) 181var cmd = new DotnetCommand(Log) 205var cmd = new DotnetCommand(Log) 233var cmd = new DotnetCommand(Log) 256var cmd = new DotnetCommand(Log) 276var cmd = new DotnetCommand(Log) 295var cmd = new DotnetCommand(Log)
CommandTests\Solution\Migrate\GivenDotnetSlnMigrate.cs (2)
20var slnMigrateCommand = new DotnetCommand(Log) 26var slnxBuildCommand = new DotnetCommand(Log)
CommandTests\Solution\Remove\GivenDotnetSlnRemove.cs (28)
37var cmd = new DotnetCommand(Log) 48var cmd = new DotnetCommand(Log) 62var cmd = new DotnetCommand(Log) 83var cmd = new DotnetCommand(Log) 103var cmd = new DotnetCommand(Log) 129var cmd = new DotnetCommand(Log) 149var cmd = new DotnetCommand(Log) 168var cmd = new DotnetCommand(Log) 187var cmd = new DotnetCommand(Log) 209var cmd = new DotnetCommand(Log) 238var cmd = new DotnetCommand(Log) 269var cmd = new DotnetCommand(Log) 295var cmd = new DotnetCommand(Log) 323var cmd = new DotnetCommand(Log) 357var cmd = new DotnetCommand(Log) 393var cmd = new DotnetCommand(Log) 422var cmd = new DotnetCommand(Log) 445var cmd = new DotnetCommand(Log) 469var cmd = new DotnetCommand(Log) 500var cmd = new DotnetCommand(Log) 505new DotnetCommand(Log) 510new DotnetCommand(Log) 537var cmd = new DotnetCommand(Log) 587var cmd = new DotnetCommand(Log) 612var cmd = new DotnetCommand(Log) 637var cmd = new DotnetCommand(Log) 662var cmd = new DotnetCommand(Log) 685var cmd = new DotnetCommand(Log)
CommandTests\Store\GivenDotnetStoresAndPublishesProjects.cs (9)
36new DotnetCommand(Log, "store", 48new DotnetPublishCommand(Log, 57new DotnetCommand(Log) 80new DotnetRestoreCommand(Log) 87new DotnetPublishCommand(Log, 96new DotnetCommand(Log) 130new DotnetCommand(Log, "store", 142new DotnetPublishCommand(Log, 152new DotnetCommand(Log)
CommandTests\Test\GivenDotnetTestBuildsAndDiscoversTests.cs (7)
25CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 48CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 71CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 92CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 117CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 138CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 158CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false)
CommandTests\Test\GivenDotnetTestBuildsAndRunsArtifactPostProcessing.cs (5)
34CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 58new PublishCommand(Log, Path.Combine(testInstance.Path, "sln.sln")).Execute("/p:Configuration=Release").Should().Pass(); 60CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 87new PublishCommand(Log, Path.Combine(testInstance.Path, "sln.sln")).Execute("/p:Configuration=Release").Should().Pass(); 89CommandResult result = new DotnetVSTestCommand(Log)
CommandTests\Test\GivenDotnetTestBuildsAndRunsHelp.cs (3)
24CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 48CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 73CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false)
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestBasedOnGlobbingFilter.cs (3)
29CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 71CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 108CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false)
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestfromCsproj.cs (30)
24CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 51CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 79new DotnetTestCommand(Log, disableNewOutput: true) 96new DotnetTestCommand(Log, disableNewOutput: true, ConsoleLoggerOutputNormal) 120CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 144var result = new DotnetTestCommand(Log, disableNewOutput: true) 174CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 207CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 239CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 270CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 304Log.WriteLine("pkgDir, package restored path is: " + pkgDir); 307new DotnetRestoreCommand(Log) 313new DotnetBuildCommand(Log) 320CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true, ConsoleLoggerOutputNormal) 348CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 386new DotnetBuildCommand(Log) 393var result = new DotnetTestCommand(Log, disableNewOutput: true, ConsoleLoggerOutputNormal) 420CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 450CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 489CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 525CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 561CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 594CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 624CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 647CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 671CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 699CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 722CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 770CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 794CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true)
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestFromCsprojForMultipleTFM.cs (9)
31new DotnetRestoreCommand(Log, "-r", runtime) 36var result = new DotnetTestCommand(Log, disableNewOutput: true, "-r", runtime) 73CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 116CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true, ConsoleLoggerOutputNormal) 136new DotnetTestCommand(Log, disableNewOutput: true, ConsoleLoggerOutputNormal) 165new DotnetNewCommand(Log, "sln") 172new DotnetCommand(Log, "sln", "add", libraryProject.Name) 178new DotnetCommand(Log, "sln", "add", testProject.Name) 184new DotnetTestCommand(Log, disableNewOutput: true, ConsoleLoggerOutputNormal)
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestfromCsprojWithCorrectTestRunParameters.cs (3)
24CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 51new BuildCommand(Log, testProjectDirectory) 58CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false)
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestFromDll.cs (4)
37var result = new DotnetTestCommand(Log, disableNewOutput: false) 71var result = new DotnetTestCommand(Log, disableNewOutput: true) 101var result = new DotnetTestCommand(Log, disableNewOutput: true) 125var result = new DotnetTestCommand(Log, disableNewOutput: true)
CommandTests\Test\GivenDotnetTestBuildsAndRunsTests.cs (20)
25CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 50CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 77CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 103CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 133CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 161CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 180CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 200CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 225CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 255CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 275CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 295CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 315CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 335CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 361CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 389CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 415CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 435CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 449CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 488CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false)
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestsForMultipleTFMs.cs (5)
28CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 68CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 116CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 156CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 184CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false)
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestsWithArtifacts.cs (2)
24CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 61CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false)
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestsWithDifferentOptions.cs (25)
27CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 46CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 66CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 84CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 103CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 122CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 143CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 163CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 183CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 203CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 222CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 242CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 270CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 290CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 308CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 328CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 353CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 373CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 389CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 415CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 440CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 474CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 512CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 542CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 560CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false)
CommandTests\Test\GivenDotnetTestContainsEnvironmentVariables.cs (2)
38CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true, EnvironmentVariables) 77var result = new DotnetTestCommand(Log, disableNewOutput: false, EnvironmentVariables)
CommandTests\Test\GivenDotnetTestContainsMSBuildParameters.cs (2)
31CommandResult result = (projectName is null ? new DotnetTestCommand(Log, disableNewOutput: true) : new DotnetTestCommand(Log, disableNewOutput: true, projectName))
CommandTests\Test\GivenDotnetTestForwardDotnetRootEnvironmentVariables.cs (1)
25var command = new DotnetTestCommand(Log, disableNewOutput: true).WithWorkingDirectory(testAsset.Path);
CommandTests\Test\GivenDotnetTestRunsConsoleAppWithoutHandshake.cs (1)
26CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false)
CommandTests\Test\GivenDotnetTestsRunsInDifferentCultures.cs (1)
25var command = new DotnetTestCommand(Log, disableNewOutput: true).WithWorkingDirectory(testAsset.Path).WithCulture(locale);
CommandTests\Test\GivenDotnetTestsRunsWithDifferentCultures.cs (1)
22CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false)
CommandTests\Test\TestCommandValidationTests.cs (3)
33var result = new DotnetTestCommand(Log, disableNewOutput: false) 59var result = new DotnetTestCommand(Log, disableNewOutput: false) 87var result = new DotnetTestCommand(Log, disableNewOutput: false)
CommandTests\Tool\Install\GivenDotnetInstallTool.cs (2)
15var result = new DotnetToolCommand(Log) 28var result = new DotnetToolCommand(Log)
CommandTests\Tool\Install\ToolInstallCommandTests.cs (2)
46new DotnetNewCommand(Log, "tool-manifest").WithCustomHive("/tmp/folder").WithWorkingDirectory("/tmp/folder").Execute().Should().Pass(); 51new DotnetNewCommand(Log, "tool-manifest").WithCustomHive("/tmp/folder/sub").WithWorkingDirectory("/tmp/folder/sub").Execute().Should().Pass();
CommandTests\Tool\Install\ToolInstallGlobalOrToolPathCommandTests.cs (1)
668var toolInstallGlobalOrToolPathCommand = new DotnetCommand(Log, "tool", "install", "-g", UnlistedPackageId, "--add-source", nugetSourcePath)
CommandTests\Tool\Restore\ToolRestoreCommandTests.cs (2)
360var toolRestoreCommand = new DotnetCommand(Log, "tool", "restore") 415var toolRestoreCommand = new DotnetCommand(Log, "tool", "restore")
CommandTests\Tool\Update\ToolUpdateGlobalOrToolPathCommandTests.cs (1)
415Log.WriteLine($"Current RuntimeIdentifier: {RuntimeInformation.RuntimeIdentifier}");
CommandTests\VSTest\VSTestTests.cs (8)
37var result = new DotnetVSTestCommand(Log) 59new BuildCommand(Log, testProjectDirectory) 66CommandResult result = new DotnetVSTestCommand(Log) 110var result = new DotnetVSTestCommand(Log) 128new BuildCommand(Log, testProjectDirectory) 136CommandResult result = new DotnetVSTestCommand(Log) 171new BuildCommand(Log, testProjectDirectory) 178CommandResult result = new DotnetVSTestCommand(Log)
CommandTests\Workload\Install\GivenDotnetWorkloadInstall.cs (6)
35var command = new DotnetCommand(Log); 49var command = new DotnetCommand(Log); 164var command = new DotnetCommand(Log); 194var command = new DotnetCommand(Log); 591var command = new DotnetCommand(Log); 608var command = new DotnetCommand(Log);
CommandTests\Workload\Install\GivenWorkloadManifestUpdater.cs (4)
583.Restore(Log); 591var command = new DotnetCommand(Log); 621.Restore(Log); 629var command = new DotnetCommand(Log);
CommandTests\Workload\Restore\GivenDotnetWorkloadRestore.cs (2)
30new DotnetWorkloadCommand(Log, "restore") 53new DotnetWorkloadCommand(Log, "restore")
CompletionTests\DotnetCliSnapshotTests.cs (2)
23Log.WriteLine($"CI environment detected, using snapshots directory in the current working directory {Environment.CurrentDirectory}"); 28Log.WriteLine($"Using snapshots from local repository because $USER {Environment.GetEnvironmentVariable("USER")} is not helix-related");
GivenParserDirectives.cs (1)
17new DotnetCommand(Log, args)
GivenThatDotNetRunsCommands.cs (3)
28new DotnetCommand(Log) 41new DotnetCommand(Log) 56new DotnetCommand(Log)
GivenThatICareAboutVBApps.cs (2)
30new DotnetCommand(Log) 53new DotnetCommand(Log)
GivenThatTheUserEnablesThePerfLog.cs (2)
19var result = new DotnetCommand(Log, "--help") 32var result = new DotnetCommand(Log, "--help")
GivenThatTheUserIsRunningDotNetForTheFirstTime.cs (5)
166var command = dotnetFirstTime.Setup(Log, _testAssetsManager); 183var command = dotnetFirstTime.Setup(Log, _testAssetsManager); 205var command = dotnetFirstTime.Setup(Log, _testAssetsManager); 218var command = dotnetFirstTime.Setup(Log, _testAssetsManager); 234var command = dotnetFirstTime.Setup(Log, _testAssetsManager);
GivenThatTheUserRequestsHelp.cs (2)
36var result = new DotnetCommand(Log) 46var result = new DotnetCommand(Log)
GivenThatWeWantToBeBackwardsCompatibleWith1xProjects.cs (3)
34new DotnetCommand(Log) 57new PackCommand(Log, testInstance.Path) 76new DotnetCommand(Log)
OutputPathOptionTests.cs (5)
50Log.WriteLine($"Test root: {slnDirectory}"); 52new DotnetNewCommand(Log) 58new DotnetCommand(Log) 67commandResult = new DotnetCommand(Log) 73commandResult = new DotnetCommand(Log)
PackagedCommandTests.cs (11)
34new DotnetCommand(Log, "portable") 68var result = new DotnetCommand(Log) 126var result = new DotnetCommand(Log) 147new DotnetCommand(Log) 161new DotnetCommand(Log) 194new DotnetCommand(Log) 199new DotnetCommand(Log) 204new DotnetCommand(Log) 222testInstance.Restore(Log); 224new DotnetCommand(Log, "dependency-context-test") 244CommandResult result = new DotnetCommand(Log, "hello")
ParserTests\ResponseFileTests.cs (3)
39Log.WriteLine($"MSbuild Args are {string.Join(" ", bc.MSBuildArguments)}"); 40Log.WriteLine($"Parse Diagram is {parseResult.ToString()}"); 41Log.WriteLine($"Token string is {tokenString}");
ShellShimTests\ShellShimRepositoryTests.cs (1)
466Log.WriteLine($"Launching '{processStartInfo.FileName} {processStartInfo.Arguments}'");
VersionTest.cs (2)
27CommandResult result = new DotnetCommand(Log) 37var result = new DotnetCommand(Log)
dotnet-MsiInstallation.Tests (2)
Framework\VMTestBase.cs (2)
19VM = new VirtualMachine(Log); 143Log.WriteLine($"Deploying SDK from {TestContext.Current.ToolsetUnderTest.SdkFolderUnderTest} to {installedSdkFolder} on VM.");
dotnet-new.IntegrationTests (43)
DotnetClassTemplateTests.cs (1)
213new DotnetNewCommand(Log, projectArgs.ToArray())
DotnetNewInstantiateTests.cs (13)
358Utils.CommandResult cmd = new DotnetNewCommand(Log) 374Utils.CommandResult cmd = new DotnetNewCommand(Log) 383Utils.CommandResult cmd = new DotnetNewCommand(Log) 394Utils.CommandResult cmd = new DotnetNewCommand(Log) 410CommandResult cmd = new DotnetNewCommand(Log, "console", languageOption, language, invalidOption) 422Utils.CommandResult cmd = new DotnetNewCommand(Log) 433Utils.CommandResult cmd = new DotnetNewCommand(Log) 450new DotnetNewCommand(Log) 457CommandResult result = new DotnetNewCommand(Log) 474new DotnetNewCommand(Log) 490new DotnetNewCommand(Log) 505new DotnetNewCommand(Log) 520new DotnetNewCommand(Log)
MSBuildEvaluationTests.cs (22)
22CommandResult cmd = new DotnetNewCommand(Log) 27cmd = new DotnetNewCommand(Log) 35cmd = new DotnetNewCommand(Log) 46cmd = new DotnetBuildCommand(Log) 60CommandResult cmd = new DotnetNewCommand(Log) 65cmd = new DotnetNewCommand(Log) 73cmd = new DotnetNewCommand(Log) 85cmd = new DotnetBuildCommand(Log) 99CommandResult cmd = new DotnetNewCommand(Log) 105cmd = new DotnetNewCommand(Log) 110cmd = new DotnetNewCommand(Log) 116cmd = new DotnetNewCommand(Log) 124cmd = new DotnetNewCommand(Log) 139CommandResult cmd = new DotnetNewCommand(Log) 144cmd = new DotnetNewCommand(Log) 150cmd = new DotnetNewCommand(Log) 158cmd = new DotnetNewCommand(Log) 167cmd = new DotnetNewCommand(Log) 173cmd = new DotnetBuildCommand(Log) 178cmd = new DotnetBuildCommand(Log) 191CommandResult cmd = new DotnetNewCommand(Log) 198cmd = new DotnetNewCommand(Log)
PostActionTests.cs (7)
958CommandResult cmd = new DotnetNewCommand(Log) 963cmd = new DotnetNewCommand(Log) 979CommandResult cmd = new DotnetNewCommand(Log) 984cmd = new DotnetNewCommand(Log) 998CommandResult cmd = new DotnetNewCommand(Log) 1003cmd = new DotnetNewCommand(Log) 1016CommandResult cmd = new DotnetNewCommand(Log)
EndToEnd.Tests (32)
GivenDotNetLinuxInstallers.cs (2)
50new RunExeCommand(Log, "dpkg") 68new RunExeCommand(Log, "rpm")
GivenDotnetUsesDotnetTools.cs (1)
11new DotnetCommand(Log)
GivenDotNetUsesMSBuild.cs (6)
18new DotnetNewCommand(Log) 24new BuildCommand(Log, projectDirectory) 28new DotnetCommand(Log, "run") 37new CleanCommand(Log, projectDirectory) 70new DotnetCommand(Log) 104new DotnetCommand(Log)
GivenNetFrameworkSupportsNetStandard2.cs (2)
17new BuildCommand(Log, projectDirectory) 21new DotnetCommand(Log, "run")
GivenSelfContainedAppsRollForward.cs (2)
19new DotnetNewCommand(Log, "web", "--no-restore") 46new DotnetNewCommand(Log, "web", "--no-restore")
GivenWindowsApp.cs (1)
56new DotnetCommand(Log, "run")
ProjectBuildTests.cs (17)
18new DotnetNewCommand(Log, "console", "--no-restore") 32new RestoreCommand(Log, projectPath) 36new BuildCommand(Log, projectPath) 40new DotnetCommand(Log, "run") 47new CleanCommand(Log, projectPath) 60new DotnetNewCommand(Log, "console", "--no-restore") 75new BuildCommand(Log, projectPath) 79new DotnetCommand(Log, "run") 97new DotnetNewCommand(Log) 108new DotnetPublishCommand(Log, publishArgs) 136new DotnetNewCommand(Log) 146new DotnetPublishCommand(Log, publishArgs) 209new DotnetNewCommand(Log) 230new DotnetNewCommand(Log) 278new DotnetNewCommand(Log) 472new DotnetBuildCommand(Log, projectDirectory) 505new DotnetNewCommand(Log)
VersionTests.cs (1)
13var result = new DotnetCommand(Log).Execute("--version");
Microsoft.DotNet.ApiCompat.IntegrationTests (21)
CompatibleFrameworkInPackageValidatorIntegrationTests.cs (2)
58PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 99PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name));
Task\ValidatePackageTargetIntegrationTests.cs (19)
44var result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 59var result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 73var result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 79result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 93var result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 98result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 112var result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 118result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 134var result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 141result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 163PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 205PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 246PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 275PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 299PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 323var result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 329result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 344var result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 350result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj"))
Microsoft.DotNet.Cli.Utils.Tests (4)
GivenAppThrowingException.cs (4)
24new DotnetCommand(Log) 41new DotnetPackCommand(Log) 49new RestoreCommand(Log, appWithToolDepRoot) 56new DotnetCommand(Log)
Microsoft.DotNet.MSBuildSdkResolver.Tests (1)
GivenAnMSBuildSdkResolver.cs (1)
241var context = new MockContext(Log)
Microsoft.DotNet.PackageInstall.Tests (39)
EndToEndToolTests.cs (24)
25string toolPackagesPath = ToolBuilder.CreateTestTool(Log, toolSettings, collectBinlogs: true); 30new DotnetToolCommand(Log, "install", "-g", toolSettings.ToolPackageId, "--add-source", toolPackagesPath) 41new RunExeCommand(Log, shimPath) 57string toolPackagesPath = ToolBuilder.CreateTestTool(Log, toolSettings, collectBinlogs: true); 63new DotnetToolCommand(Log, "install", "-g", toolSettings.ToolPackageId, "--add-source", toolPackagesPath) 74new RunExeCommand(Log, shimPath) 85string toolPackagesPath = ToolBuilder.CreateTestTool(Log, toolSettings); 90new DotnetCommand(Log, "new", "tool-manifest") 96new DotnetToolCommand(Log, "install", toolSettings.ToolPackageId, "--add-source", toolPackagesPath) 102new DotnetCommand(Log, toolSettings.ToolCommandName) 119string toolPackagesPath = ToolBuilder.CreateTestTool(Log, toolSettings); 124new DotnetCommand(Log, "new", "tool-manifest") 130new DotnetToolCommand(Log, "install", toolSettings.ToolPackageId, "--add-source", toolPackagesPath) 136new DotnetCommand(Log, toolSettings.ToolCommandName) 152string toolPackagesPath = ToolBuilder.CreateTestTool(Log, toolSettings); 181string toolPackagesPath = ToolBuilder.CreateTestTool(Log, toolSettings); 211string toolPackagesPath = ToolBuilder.CreateTestTool(Log, toolSettings, collectBinlogs: true); 242string toolPackagesPath = ToolBuilder.CreateTestTool(Log, toolSettings); 276string toolPackagesPath = ToolBuilder.CreateTestTool(Log, toolSettings, collectBinlogs: true); 285new DotnetToolCommand(Log, "exec", toolSettings.ToolPackageId, "--verbosity", "diagnostic", "--yes", "--source", toolPackagesPath) 304string toolPackagesPath = ToolBuilder.CreateTestTool(Log, toolSettings, collectBinlogs: true); 313new DotnetToolCommand(Log, "exec", toolSettings.ToolPackageId, "--verbosity", "diagnostic", "--yes", "--source", toolPackagesPath) 329string toolPackagesPath = ToolBuilder.CreateTestTool(Log, toolSettings, collectBinlogs: true); 364string toolPackagesPath = ToolBuilder.CreateTestTool(Log, toolSettings, collectBinlogs: true);
NuGetPackageInstallerExtractTests.cs (3)
24NuGetTestLogger logger = new(Log); 43NuGetTestLogger logger = new(Log); 67NuGetTestLogger logger = new(Log);
NuGetPackageInstallerTests.cs (5)
160new RunExeCommand(Log, "dotnet", "nuget", "locals", "all", "--list") 165Log.WriteLine("Relative path: " + relativePath); 179Log.WriteLine(relativePath); 200Log.WriteLine(relativePath); 221Log.WriteLine(relativePath);
ToolPackageDownloaderTests.cs (6)
274ToolBuilder.RemovePackageFromGlobalPackages(Log, TestPackageId.ToString(), TestPackageVersion); 284Log.WriteLine("Root path: " + testDir.Value); 285Log.WriteLine("Relative path: " + relativePath); 286Log.WriteLine("Current Directory: " + Directory.GetCurrentDirectory()); 308ToolBuilder.RemovePackageFromGlobalPackages(Log, TestPackageId.ToString(), TestPackageVersion); 550new RunExeCommand(Log, "dotnet", "nuget", "locals", "all", "--list")
ToolPackageInstallerNugetCacheTests.cs (1)
62Log.WriteLine(line);
Microsoft.NET.Build.Tasks.UnitTests (4)
GivenThatWeWantToGetDependenciesViaDesignTimeBuild.cs (4)
23Log.WriteLine("Test root: " + testRoot); 56Log.WriteLine("Test root: " + testRoot); 91Log.WriteLine("Test root: " + testRoot); 360Log.WriteLine("Test root: " + testRoot);
Microsoft.NET.Build.Tests (239)
AppHostTests.cs (3)
71new RunExeCommand(Log, Path.Combine(outputDirectory.FullName, hostExecutable)) 110new RunExeCommand(Log, codesignPath, new string[] { "-d", appHostFullPath }) 164MachOSignature.HasValidMachOSignature(new FileInfo(appHostFullPath), Log)
ArtifactsOutputPathTests.cs (13)
82new DotnetCommand(Log, "build") 104new DotnetCommand(Log, "publish") 129new DotnetCommand(Log, "pack") 168new DotnetCommand(Log, "build") 287new DotnetPublishCommand(Log, "-f", targetFramework) 299new DotnetPackCommand(Log) 371new DotnetPublishCommand(Log) 387new DotnetPackCommand(Log) 403new DotnetBuildCommand(Log) 437new DotnetPackCommand(Log) 568new DotnetPublishCommand(Log) 585new DotnetBuildCommand(Log) 601new RunExeCommand(Log, binary.FullName)
COMReferenceTests.cs (1)
59var runCommand = new RunExeCommand(Log, outputDirectory.File("UseComReferences.exe").FullName);
DesignTimeBuildTests.cs (2)
46var command = new MSBuildCommand(Log, "ResolveAssemblyReferencesDesignTime", projectDirectory) 221var buildCommand = new MSBuildCommand(Log, null, projectFolder)
EvaluatorFastPathTests.cs (2)
39new DotnetNewCommand(Log, alias) 46new DotnetBuildCommand(Log)
GenerateResourceTests.cs (1)
64var runCommand = new RunExeCommand(Log, Path.Combine(outputDirectory.FullName, "HelloWorld.exe"));
GivenFrameworkReferences.cs (5)
102.Restore(Log, testProject.Name); 139.Restore(Log, testProject.Name); 858var getValuesCommand = new GetValuesCommand(Log, projectFolder, testProject.TargetFrameworks, 1008var getValuesCommand = new GetValuesCommand(Log, projectFolder, testProject.TargetFrameworks, "Reference", GetValuesCommand.ValueType.Item); 1160var command = new GetValuesCommand(Log, Path.Combine(testAsset.Path, testProject.Name), targetFramework,
GivenThatAProjectHasntBeenRestored.cs (1)
33var buildCommand = new BuildCommand(Log, projectDirectory);
GivenThatWeManifestSupportedFrameworks.cs (3)
29Log, 36Log, 106Log,
GivenThatWeWantACustomTFM.cs (1)
46var getValuesCommand = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name),
GivenThatWeWantAllResourcesInSatellite.cs (1)
19TestSatelliteResources(Log, _testAssetsManager);
GivenThatWeWantDiagnosticsWhenAssetsFileCannotBeRead.cs (2)
17var testAsset = _testAssetsManager.CopyTestAsset("HelloWorld").WithSource().Restore(Log); 40var testAsset = _testAssetsManager.CopyTestAsset("HelloWorld").WithSource().Restore(Log);
GivenThatWeWantDiagnosticsWhenPackageCannotBeFound.cs (3)
32.Restore(Log, project.Name); 46asset.Restore(Log, project.Name); 86Log,
GivenThatWeWantToBuildACppCliProject.cs (1)
43var runCommand = new RunExeCommand(Log, exe);
GivenThatWeWantToBuildACrossTargetedLibrary.cs (1)
108var command = new GetValuesCommand(Log, testAsset.TestRoot, "", valueName: "RuntimeIdentifiers")
GivenThatWeWantToBuildADesktopExe.cs (5)
164var getValueCommand = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), testProject.TargetFrameworks, "PlatformTarget"); 224var runCommand = new RunExeCommand(Log, exe); 325var runCommand = new RunExeCommand(Log, exe); 355var getValuesCommand = new GetValuesCommand(Log, testAsset.TestRoot, 376var getValuesCommand = new GetValuesCommand(Log, testAsset.TestRoot,
GivenThatWeWantToBuildADesktopExeWtihNetStandardLib.cs (2)
143var getCommandLineCommand = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, AppName), "", "CscCommandLineArgs", GetValuesCommand.ValueType.Item); 228new NuGetExeRestoreCommand(Log, testAsset.TestRoot, AppName)
GivenThatWeWantToBuildADesktopLibrary.cs (2)
429var getValuesCommand = new GetValuesCommand(Log, projectFolder, project.TargetFrameworks, "Reference", GetValuesCommand.ValueType.Item); 488var msbuildBuildCommand = new MSBuildCommand(Log, "Build", buildCommand.FullPathProjectFile);
GivenThatWeWantToBuildALibrary.cs (17)
266var restoreCommand = new RestoreCommand(Log, libraryProjectDirectory, "TestLibrary.different_language_proj"); 287var getValuesCommand = new GetValuesCommand(Log, libraryProjectDirectory, 367var getValuesCommand = new GetValuesCommand(Log, libraryProjectDirectory, 462var getValuesCommand = new GetValuesCommand(Log, libraryProjectDirectory, 542var buildCommand = new BuildCommand(Log, Path.Combine(testAsset.Path, testProj.Name)); 548var runCommand = new RunExeCommand(Log, Path.Combine(buildCommand.GetOutputDirectory(targetFramework).FullName, $"{testProj.Name}.exe")); 602var getValuesCommand = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), targetFramework, "TargetPlatformIdentifier"); 633var getValuesCommand = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), targetFramework, "TargetPlatformVersion"); 673new DotnetNewCommand(Log) 681new DotnetCommand(Log) 689restoreCommand = testAsset.GetRestoreCommand(Log, relativePathToSln); 694restoreCommand = testAsset.GetRestoreCommand(Log, testProject.Name); 728var restoreCommand = testAsset.GetRestoreCommand(Log, relativePath: testProject.Name); 766.Restore(Log, testProject.Name); 836Log, 1055var getValuesCommand = new GetValuesCommand(Log, projectFolder, 1134var getValuesCommand = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, "TestLibrary"), targetFramework, "PackageConflictPreferredPackages");
GivenThatWeWantToBuildALibraryWithFSharp.cs (3)
129var restoreCommand = new RestoreCommand(Log, libraryProjectDirectory, "TestLibrary.different_language_proj"); 150var getValuesCommand = new GetValuesCommand(Log, libraryProjectDirectory, 214var getValuesCommand = new GetValuesCommand(Log, libraryProjectDirectory,
GivenThatWeWantToBuildALibraryWithOSSupportedVersion.cs (11)
20var runCommand = new DotnetCommand(Log, "run") 45var runCommand = new DotnetCommand(Log, "run") 69var runCommand = new DotnetCommand(Log, "run") 88var runCommand = new DotnetCommand(Log, "run") 108var runCommand = new DotnetCommand(Log, "run") 127var runCommand = new DotnetCommand(Log, "run") 152var buildCommand = new DotnetBuildCommand(Log, Path.Combine(testAsset.Path, "Project", "Project.csproj")); 166var runCommand = new DotnetCommand(Log, "run") 185var runCommand = new DotnetCommand(Log, "run") 214var runCommand = new DotnetCommand(Log, "run") 263var runCommand = new DotnetCommand(Log, "run")
GivenThatWeWantToBuildALibraryWithVB.cs (3)
140var restoreCommand = new RestoreCommand(Log, libraryProjectDirectory, "TestLibrary.different_language_proj"); 161var getValuesCommand = new GetValuesCommand(Log, libraryProjectDirectory, 232var getValuesCommand = new GetValuesCommand(Log, libraryProjectDirectory,
GivenThatWeWantToBuildAnAppWithLibrariesAndRid.cs (2)
53new RunExeCommand(Log, selfContainedExecutableFullPath) 117new DotnetCommand(Log, Path.Combine(outputDirectory.FullName, "App.dll"))
GivenThatWeWantToBuildAnAppWithLibrary.cs (3)
59new DotnetCommand(Log, Path.Combine(outputDirectory.FullName, "TestApp.dll")) 98var commandResult = new DotnetCommand(Log, Path.Combine(outputDir.FullName, "TestApp.dll")) 154var cleanCommand = new MSBuildCommand(Log, "Clean", buildCommand.FullPathProjectFile);
GivenThatWeWantToBuildAnAppWithoutTransitiveProjectRefs.cs (5)
37Log, 62testAsset.Restore(Log, "1"); 115Log, 150testAsset.Restore(Log, "1"); 170new DotnetCommand(Log, Path.Combine(outputDirectory.FullName, "1.dll"))
GivenThatWeWantToBuildAnAppWithSharedProject.cs (1)
19var command = new MSBuildCommand(Log, "WriteItems", testAsset.TestRoot, "TestApp");
GivenThatWeWantToBuildAnAppWithTransitiveNonSdkProjectRefs.cs (1)
181new DotnetCommand(Log, Path.Combine(outputDirectory.FullName, "TestApp.dll"))
GivenThatWeWantToBuildAnAppWithTransitiveProjectRefs.cs (2)
48new DotnetCommand(Log, Path.Combine(outputDirectory.FullName, "TestApp.dll")) 86var cleanCommand = new MSBuildCommand(Log, "Clean", buildCommand.FullPathProjectFile);
GivenThatWeWantToBuildANetCoreApp.cs (6)
210.Restore(Log, testProject.Name); 241var getValuesCommand = new GetValuesCommand(Log, testAsset.TestRoot, 365new DotnetCommand(Log, Path.Combine(outputFolder, project.Name + ".dll")) 782Log, 1123var buildCommand = new BuildCommand(Log, Path.Combine(testAsset.Path, testProj.Name)); 1129var runCommand = new RunExeCommand(Log, Path.Combine(buildCommand.GetOutputDirectory(ToolsetInfo.CurrentTargetFramework).FullName, $"{testProj.Name}{EnvironmentInfo.ExecutableExtension}"));
GivenThatWeWantToBuildAppsWithFrameworkRefs.cs (2)
44new RunExeCommand(Log, Path.Combine(outputDirectory.FullName, "EntityFrameworkApp.exe")) 95var cleanCommand = new MSBuildCommand(Log, "Clean", buildCommand.FullPathProjectFile);
GivenThatWeWantToBuildASelfContainedApp.cs (8)
78new RunExeCommand(Log, selfContainedExecutableFullPath) 143new RunExeCommand(Log, selfContainedExecutableFullPath) 397new DotnetBuildCommand(Log) 429var buildCommand = new DotnetBuildCommand(Log, "/bl"); 494var command = new GetValuesCommand(Log, 519new RunExeCommand(Log, exePath) 589new RunExeCommand(Log, selfContainedExecutableFullPath) 632new RunExeCommand(Log, selfContainedExecutableFullPath)
GivenThatWeWantToBuildAWindowsDesktopProject.cs (4)
149new DotnetNewCommand(Log, "wpf", "--no-restore") 167var buildCommand = new BuildCommand(Log, testDirectory); 255new DotnetNewCommand(Log) 283var buildCommand = new BuildCommand(Log, testDir.Path);
GivenThatWeWantToBuildAWindowsRuntimeComponent.cs (2)
192new RunExeCommand(Log, exePath) 260new NuGetExeRestoreCommand(Log, cppWinTargetDirectory)
GivenThatWeWantToBuildWithARuntimeIdentifier.cs (2)
21var buildCommand = new BuildCommand(Log, testAsset.TestRoot, "App.sln"); 44var buildCommand = new BuildCommand(Log, testAsset.TestRoot, "App.sln");
GivenThatWeWantToBuildWithATargetPlatform.cs (3)
32var getValuesCommand = new GetValuesCommand(Log, Path.Combine(testAsset.Path, testProj.Name), targetFramework, valueName); 70var getValuesCommand = new GetValuesCommand(Log, Path.Combine(testAsset.Path, testProj.Name), targetFramework, "TargetPlatformIdentifier"); 88var build = new BuildCommand(Log, Path.Combine(testAsset.Path, testProject.Name));
GivenThatWeWantToCollectExceptionTelemetry.cs (1)
28var mSBuildCommand = new MSBuildCommand(Log, "GenerateToolsSettingsFileFromBuildProperty", Path.Combine(testAsset.TestRoot));
GivenThatWeWantToControlGeneratedAssemblyInfo.cs (7)
96var command = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), testProject.TargetFrameworks, valueName: "InformationalVersion"); 127var command = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), testProject.TargetFrameworks, valueName: "InformationalVersion"); 159var command = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), testProject.TargetFrameworks, valueName: "InformationalVersion"); 195var command = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), testProject.TargetFrameworks, valueName: "InformationalVersion"); 232var command = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), testProject.TargetFrameworks, valueName: "InformationalVersion"); 690.Restore(Log, testProject.Name); 862var result = new DotnetCommand(Log, "exec", exePath).Execute();
GivenThatWeWantToFloatWarningLevels.cs (8)
51Log, 95Log, 140Log, 196Log, 243Log, 339Log, 356Log, 463var buildCommand = new BuildCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name));
GivenThatWeWantToGenerateADepsFileForATool.cs (3)
106var packCommand = new PackCommand(Log, Path.Combine(toolProjectInstance.TestRoot, toolProject.Name)); 135var restoreCommand = toolReferencerInstance.GetRestoreCommand(Log, toolReferencer.Name); 189var generateDepsCommand = new MSBuildCommand(Log, "BuildDepsJson", generateDepsProjectDirectoryPath, generateDepsProjectFileName);
GivenThatWeWantToIncludeItemsOutsideTheProjectFolder.cs (1)
33var command = new MSBuildCommand(Log, "WriteItems", testAsset.TestRoot, "LinkTest");
GivenThatWeWantToReferenceAnAssembly.cs (8)
74new DotnetCommand(Log, applicationPath) 195new DotnetCommand(Log, applicationPath) 280new DotnetCommand(Log, applicationPath) 418new DotnetCommand(Log, applicationPath) 504new DotnetCommand(Log, applicationPath) 643new DotnetCommand(Log, applicationPath) 746new DotnetCommand(Log, applicationPath) 902new DotnetCommand(Log, applicationPath)
GivenThatWeWantToReferenceAProject.cs (3)
90var restoreCommand = testAsset.GetRestoreCommand(Log, relativePath: "Referencer"); 111testAsset.GetRestoreCommand(Log, relativePath: "Dependency") 187var getValuesCommand = new GetValuesCommand(Log, Path.Combine(parentAsset.Path, parentProject.Name), tfm, "ResultOutput")
GivenThatWeWantToResolveConflicts.cs (2)
73Log, 94Log,
GivenThatWeWantToResolveRuntimePackAssets.cs (2)
34Log, 76Log,
GivenThatWeWantToRunFromMSBuildTarget.cs (1)
30var runTargetCommand = new MSBuildCommand(Log, "run", Path.Combine(testAsset.TestRoot, testProject.Name));
GivenThatWeWantToSetPropertiesInDirectoryBuildProps.cs (2)
35var restoreCommand = testAsset.GetRestoreCommand(Log, project.Name); 53var getValuesCommand = new GetValuesCommand(Log, projectFolder,
GivenThatWeWantToTargetNet471.cs (1)
482new RunExeCommand(Log, exePath)
GivenThatWeWantToUseAnalyzers.cs (4)
111Log, 139Log, 206Log, 248Log,
GivenThatWeWantToUsePlatformAnalyzers.cs (9)
49Log, 95Log, 141Log, 187Log, 233Log, 279var buildCommand = new BuildCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 318Log, 364Log, 410Log,
GivenThatWeWantToUseVB.cs (3)
75Log, 180new DotnetNewCommand(Log, "wpf", "-lang", "vb") 187var buildCommand = new BuildCommand(Log, testDirectory);
GivenThatWeWantToVerifyNuGetReferenceCompat.cs (9)
69dependencyTestAsset.GetRestoreCommand(Log, relativePath: dependencyProject.Name) 76new PackCommand(Log, dependencyProjectDirectory) 104var referencerRestoreCommand = referencerTestAsset.GetRestoreCommand(Log, relativePath: referencerProject.Name); 148var restoreCommand = testProjectTestAsset.GetRestoreCommand(Log, relativePath: testProjectName); 168var restoreCommand = testProjectTestAsset.GetRestoreCommand(Log, relativePath: testProjectName); 184var restoreCommand = testProjectTestAsset.GetRestoreCommand(Log, relativePath: testProjectName); 204var restoreCommand = testProjectTestAsset.GetRestoreCommand(Log, relativePath: testProjectName); 273testAsset.GetRestoreCommand(Log, relativePath: project.Name).Execute().Should().Pass(); 276new PackCommand(Log, dependencyProjectDirectory).Execute().Should().Pass();
GivenThatWeWantToVerifyProjectReferenceCompat.cs (1)
49var restoreCommand = testAsset.GetRestoreCommand(Log, relativePath: referencerProject.Name);
GivenThereAreDefaultItems.cs (24)
36var compileItems = GivenThatWeWantToBuildALibrary.GetValuesFromTestLibrary(Log, _testAssetsManager, "Compile", setup); 75var compileItems = GivenThatWeWantToBuildALibrary.GetValuesFromTestLibrary(Log, _testAssetsManager, "Compile", setup, projectChanges: projectChanges); 116var compileItems = GivenThatWeWantToBuildALibrary.GetValuesFromTestLibrary(Log, _testAssetsManager, 158var compileItems = GivenThatWeWantToBuildALibrary.GetValuesFromTestLibrary(Log, _testAssetsManager, "Compile", setup, projectChanges: projectChanges); 194var compileItems = GivenThatWeWantToBuildALibrary.GetValuesFromTestLibrary(Log, _testAssetsManager, "Compile", setup, projectChanges: projectChanges); 231var compileItems = GivenThatWeWantToBuildALibrary.GetValuesFromTestLibrary(Log, _testAssetsManager, "Compile", setup, projectChanges: projectChanges); 268var compileItems = GivenThatWeWantToBuildALibrary.GetValuesFromTestLibrary(Log, _testAssetsManager, "Compile", setup, projectChanges: projectChanges); 283var embeddedResourceItems = GivenThatWeWantToBuildALibrary.GetValuesFromTestLibrary(Log, _testAssetsManager, "EmbeddedResource", setup, projectChanges: projectChanges, identifier: "EmbeddedResource"); 319var compileItems = GivenThatWeWantToBuildALibrary.GetValuesFromTestLibrary(Log, _testAssetsManager, "Compile", setup, projectChanges: projectChanges); 334var contentItems = GivenThatWeWantToBuildALibrary.GetValuesFromTestLibrary(Log, _testAssetsManager, "Content", setup, projectChanges: projectChanges, identifier: "Content"); 345var noneItems = GivenThatWeWantToBuildALibrary.GetValuesFromTestLibrary(Log, _testAssetsManager, "None", setup, projectChanges: projectChanges, identifier: expectedContentItems.GetHashCode().ToString()); 394var getCompileItemsCommand = new GetValuesCommand(Log, projectFolder, testProject.TargetFrameworks, "Compile", GetValuesCommand.ValueType.Item); 404var getNoneItemsCommand = new GetValuesCommand(Log, projectFolder, testProject.TargetFrameworks, "None", GetValuesCommand.ValueType.Item); 413var getResourceItemsCommand = new GetValuesCommand(Log, projectFolder, testProject.TargetFrameworks, "Resource", GetValuesCommand.ValueType.Item); 422var getPRIResourceItemsCommand = new GetValuesCommand(Log, projectFolder, testProject.TargetFrameworks, "PRIResource", GetValuesCommand.ValueType.Item); 431var getContentItemsCommand = new GetValuesCommand(Log, projectFolder, testProject.TargetFrameworks, "Content", GetValuesCommand.ValueType.Item); 508GivenThatWeWantAllResourcesInSatellite.TestSatelliteResources(Log, _testAssetsManager, projectChanges, setup, "ExplicitCompileDefaultEmbeddedResource"); 727var getValuesCommand = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), 775var getNoneItemsCommand = new GetValuesCommand(Log, projectFolder, testProject.TargetFrameworks, "None", GetValuesCommand.ValueType.Item); 785var getPRIResourceItemsCommand = new GetValuesCommand(Log, projectFolder, testProject.TargetFrameworks, "PRIResource", GetValuesCommand.ValueType.Item); 794var getContentItemsCommand = new GetValuesCommand(Log, projectFolder, testProject.TargetFrameworks, "Content", GetValuesCommand.ValueType.Item); 826var getNoneItemsCommand = new GetValuesCommand(Log, projectFolder, testProject.TargetFrameworks, "None", GetValuesCommand.ValueType.Item); 837var getPRIResourceItemsCommand = new GetValuesCommand(Log, projectFolder, testProject.TargetFrameworks, "PRIResource", GetValuesCommand.ValueType.Item); 847var getContentItemsCommand = new GetValuesCommand(Log, projectFolder, testProject.TargetFrameworks, "Content", GetValuesCommand.ValueType.Item);
GiventThatWeWantDesignerSupport.cs (1)
68Log,
GivenWeWantToRequireWindowsForDesktopApps.cs (7)
151new BuildCommand(Log, testInstance.Path) 178var command = new BuildCommand(Log, Path.Combine(asset.Path, ProjectName)); 206var command = new BuildCommand(Log, Path.Combine(asset.Path, ProjectName)); 237var buildCommand = new BuildCommand(Log, Path.Combine(asset.Path, ProjectName)); 263Log, 291Log, 359Log,
GlobalPropertyFlowTests.cs (5)
184new DotnetNewCommand(Log, "sln") 191new DotnetCommand(Log, "sln", "add", _testProject.Name) 197new DotnetCommand(Log, "sln", "add", _referencedProject.Name) 207new DotnetBuildCommand(Log, arguments.ToArray()) 217new DotnetBuildCommand(Log, arguments.ToArray())
Net50Targeting.cs (1)
29var getValuesCommand = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), testProject.TargetFrameworks, "TargetFrameworkIdentifier");
ProjectConfigurationDescriptionTest.cs (1)
41var buildCommand = new BuildCommand(Log, Path.Combine(testAsset.Path, testProj.Name));
ReferenceExeTests.cs (10)
149new RunExeCommand(Log, mainExePath) 157var referencedExeResult = new RunExeCommand(Log, referencedExePath) 349new DotnetNewCommand(Log, testTemplateName) 356new DotnetCommand(Log, "add", "reference", ".." + Path.DirectorySeparatorChar + testConsoleProject.Name) 362new BuildCommand(Log, testProjectDirectory) 415var result = new BuildCommand(Log, mtpProjectDirectory).Execute(); 464var result = new BuildCommand(Log, consoleAppDirectory).Execute(); 493new DotnetNewCommand(Log, testTemplateName) 502new DotnetCommand(Log, "add", "reference", ".." + Path.DirectorySeparatorChar + "TestProject") 548new BuildCommand(Log, mtpProjectDirectory)
RoslynBuildTaskTests.cs (1)
155var runCommand = new RunExeCommand(Log, outputFile.FullName);
Microsoft.NET.Clean.Tests (4)
GivenThatWeWantToCleanAProject.cs (4)
21.Restore(Log); 35var cleanCommand = new CleanCommand(Log, testAsset.TestRoot); 55var cleanCommand = new CleanCommand(Log, testAsset.TestRoot); 72var cleanAndBuildCommand = new MSBuildCommand(Log, "Clean;Build", testAsset.TestRoot);
Microsoft.NET.Pack.Tests (13)
GivenThatThereAreImplicitPackageReferences.cs (1)
260var packCommand = new PackCommand(Log, testProjectInstance.TestRoot, testProject.Name);
GivenThatWeWantToPackACppCliProject.cs (1)
23new PackCommand(Log, Path.Combine(testAsset.TestRoot, "NETCoreCppCliTest", "NETCoreCppCliTest.vcxproj"))
GivenThatWeWantToPackACrossTargetedLibrary.cs (1)
21new PackCommand(Log, libraryProjectDirectory)
GivenThatWeWantToPackAHelloWorldProject.cs (6)
23var packCommand = new PackCommand(Log, helloWorldAsset.TestRoot); 70new PackCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)) 89var packCommand = new DotnetPackCommand(Log, helloWorldAsset.TestRoot); 116var packCommand = new DotnetPackCommand(Log, helloWorldAsset.TestRoot); 147var packCommand = new DotnetPackCommand(Log, helloWorldAsset.TestRoot); 170var publishCommand = new DotnetPublishCommand(Log, helloWorldAsset.TestRoot);
GivenThatWeWantToPackANetFrameworkLibrary.cs (1)
79var packCommand = new PackCommand(Log, testProjectInstance.TestRoot, testProject.Name);
GivenThatWeWantToPackAProjectTool.cs (2)
29var packCommand = new PackCommand(Log, Path.Combine(asset.TestRoot, toolProject.Name)); 48var result = new PackCommand(Log, Path.Combine(asset.TestRoot, toolProject.Name)).Execute();
SolutionPackTests.cs (1)
31new DotnetCommand(Log, "pack", "--output", packageOutputPath)
Microsoft.NET.Publish.Tests (129)
FilesCopiedToPublishDirTests.cs (3)
55Log, 73Log.WriteLine("FilesCopiedToPublishDir contains '{0}' items:", items.Count()); 76Log.WriteLine(" '{0}': RelativePath = '{1}'", item.Identity, item.RelativePath);
GivenThatAPublishedDepsJsonShouldContainVersionInformation.cs (1)
146var runAppCommand = new DotnetCommand(Log, "exec", "--fx-version", rollForwardVersion, exePath);
GivenThatWeWantToPreserveCompilationContext.cs (4)
122Log.WriteLine("Unexpected compile libraries: " + string.Join(' ', extraCompileLibraryNames)); 126Log.WriteLine("Missing compile libraries: " + string.Join(' ', missingCompileLibraryNames)); 181.Restore(Log, "TestApp"); 195var publishCommand = new PublishCommand(Log, appProjectDirectory);
GivenThatWeWantToPublishACppCliAppProject.cs (1)
21new PublishCommand(Log, Path.Combine(testAsset.TestRoot, "NETCoreCppCliTest.sln"))
GivenThatWeWantToPublishACppCliProject.cs (3)
21new PublishCommand(Log, Path.Combine(testAsset.TestRoot, "CSConsoleApp")) 33var runCommand = new RunExeCommand(Log, exe); 49new PublishCommand(Log, Path.Combine(testAsset.TestRoot, "NETCoreCppCliTest"))
GivenThatWeWantToPublishAFrameworkDependentApp.cs (1)
85new RunExeCommand(Log, Path.Combine(publishDirectory.FullName, appHostName))
GivenThatWeWantToPublishAHelloWorldProject.cs (17)
55new DotnetCommand(Log, Path.Combine(publishDirectory.FullName, "HelloWorld.dll")) 122new RunExeCommand(Log, selfContainedExecutableFullPath) 369runCommand = new RunExeCommand(Log, selfContainedExecutableFullPath); 386runCommand = new DotnetCommand(Log, Path.Combine(publishDirectory.FullName, $"{testProject.Name}.dll")); 437new DotnetPublishCommand(Log, helloWorldAsset.TestRoot) 460new DotnetPublishCommand(Log, helloWorldAsset.TestRoot) 480new DotnetCommand(Log) 499new DotnetCommand(Log) 517new DotnetPublishCommand(Log) 539var publishCommand = new DotnetPublishCommand(Log, helloWorldAsset.TestRoot); 561new DotnetPublishCommand(Log, helloWorldAsset.TestRoot) 592new DotnetPublishCommand(Log, helloWorldAsset.TestRoot) 619new DotnetPublishCommand(Log, $"-p:DebugSymbols={debugSymbols}") 644new DotnetPublishCommand(Log) 687var publishCommand = new DotnetPublishCommand(Log, helloWorldAsset.Path); 1096var publishCommand = new DotnetPublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 1152TestCommand runCommand = new RunExeCommand(Log, Path.Combine(publishDirectory, $"{testProject.Name}{Constants.ExeSuffix}"));
GivenThatWeWantToPublishAnAotApp.cs (19)
47var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 75var command = new RunExeCommand(Log, publishedExe) 109var command = new RunExeCommand(Log, publishedExe) 164var command = new RunExeCommand(Log, publishedExe) 216var command = new RunExeCommand(Log, publishedExe) 305var command = new RunExeCommand(Log, publishedExe) 344var command = new RunExeCommand(Log, publishedExe) 464var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 488var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 512var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 535var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 565var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 584var buildCommand = new BuildCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 599var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 699var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 749var command = new RunExeCommand(Log, publishedExe) 844var command = new RunExeCommand(Log, publishedExe) 896var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 942var publishCommand = new DotnetPublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name));
GivenThatWeWantToPublishAnAppWithLibrariesAndRid.cs (2)
51new RunExeCommand(Log, Path.Combine(publishDirectory.FullName, selfContainedExecutable)) 81new DotnetCommand(Log, Path.Combine(publishDirectory.FullName, "App.dll"))
GivenThatWeWantToPublishAProjectWithAllFeatures.cs (2)
145var buildCommand = new BuildCommand(Log, publishCommand.ProjectRootPath); 207return new PublishCommand(Log, appProjectDirectory);
GivenThatWeWantToPublishAProjectWithDependencies.cs (3)
44TestCommand runAppCommand = new DotnetCommand(Log, appPath, "one", "two"); 95PublishCommand publishCommand = new(Log, appProjectDirectory); 250var libPublishCommand = new PublishCommand(Log, Path.Combine(libAsset.TestRoot, "NetStdLib"));
GivenThatWeWantToPublishASingleFileApp.cs (9)
116var exeCommand = new RunExeCommand(Log, singleFilePath); 330var command = new RunExeCommand(Log, singleFilePath); 572var command = new RunExeCommand(Log, singleFilePath); 636var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 656var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 672var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 829var command = new RunExeCommand(Log, singleFilePath); 1032var command = new RunExeCommand(Log, singleFilePath); 1178MachOSignature.HasValidMachOSignature(new FileInfo(singleFilePath), Log)
GivenThatWeWantToPublishAWebApp.cs (1)
101new RunExeCommand(Log, Path.Combine(output.FullName, $"{testProject.Name}{Constants.ExeSuffix}"))
GivenThatWeWantToPublishIncrementally.cs (3)
184new DotnetNewCommand(Log) 197new PublishCommand(Log, Path.Combine(testDir.Path, assetName)) 208new PublishCommand(Log, Path.Combine(testDir.Path, assetName))
GivenThatWeWantToPublishReadyToRun.cs (7)
258var publishCommand = new PublishCommand(Log, Path.Combine(testProjectInstance.Path, testProject.Name)); 288Log.WriteLine($"sdkOs = {sdkOs}"); 291Log.WriteLine("Running test on OS that doesn't support this cross platform build"); 296Log.WriteLine($"sdkArch = {sdkArch}"); 300Log.WriteLine("Running test on processor architecture that doesn't support this cross platform build"); 402Log.WriteLine("Checking for symbol files"); 419Log.WriteLine($"{publishDirectory.FullName} {s}");
GivenThatWeWantToPublishTrimmedWindowsFormsAndWPFApps.cs (6)
119new DotnetNewCommand(Log) 142var restoreCommand = new RestoreCommand(Log, testDir.Path); 147var publishCommand = new PublishCommand(Log, testDir.Path); 191new DotnetNewCommand(Log) 214var restoreCommand = new RestoreCommand(Log, testDir.Path); 219var publishCommand = new PublishCommand(Log, testDir.Path);
GivenThatWeWantToPublishWithoutConflicts.cs (2)
32var getValuesCommand = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), targetFramework, "ResolvedFileToPublish", GetValuesCommand.ValueType.Item) 71var getValuesCommand = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), targetFramework, "ResolvedFileToPublish", GetValuesCommand.ValueType.Item)
GivenThatWeWantToRunILLink.cs (5)
134var command = new RunExeCommand(Log, exe) 890var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 988var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 1008var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 1025var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name));
GivenThatWeWantToStoreAProjectWithDependencies.cs (8)
61var storeCommand = new ComposeStoreCommand(Log, simpleDependenciesAsset.TestRoot, "FluentAssertion.xml"); 91var storeCommand = new ComposeStoreCommand(Log, simpleDependenciesAsset.TestRoot, "FluentAssertion.xml"); 111Log.WriteLine($"Binlog written to {binlogPath}"); 134var storeCommand = new ComposeStoreCommand(Log, simpleDependenciesAsset.TestRoot, "NewtonsoftFilterProfile.xml") 191new ComposeStoreCommand(Log, targetManifestsAsset.TestRoot, "StarVersion.xml") 225var composeStore = new ComposeStoreCommand(Log, targetManifestsAsset.TestRoot, "NewtonsoftFilterProfile.xml"); 286new ComposeStoreCommand(Log, testProjectInstance.TestRoot, testProject.Name) 317var composeStore = new ComposeStoreCommand(Log, targetManifestsAsset.TestRoot, "PrunePackages.xml")
GivenThatWeWantToTestAMultitargetedSolutionWithPublishReleaseOrPackRelease.cs (14)
84var dotnetCommand = new DotnetCommand(Log, publish); 106var dotnetCommand = new DotnetCommand(Log, pack); 130var dotnetCommand = new DotnetCommand(Log, pack); 155var dotnetCommand = new DotnetCommand(Log, publish); 179var dotnetCommand = new DotnetCommand(Log, publish); 217var dotnetCommand = new DotnetCommand(Log); 225var dotnetCommand = new DotnetCommand(Log); 252var dotnetCommand = new DotnetPublishCommand(Log); 270var dotnetCommand = new DotnetCommand(Log, publish); 287var dotnetCommand = new DotnetCommand(Log, publish); 304new DotnetCommand(Log) 318new DotnetPublishCommand(Log) 334new DotnetPublishCommand(Log) 362new DotnetPackCommand(Log)
PublishDepsFilePathTests.cs (1)
51var getValuesCommand = new GetValuesCommand(Log, projectPath, targetFramework, property)
PublishItemsOutputGroupOutputsTests.cs (3)
55Log, 73Log.WriteLine("PublishItemsOutputGroupOutputs contains '{0}' items:", items.Count()); 76Log.WriteLine(" '{0}': OutputPath = '{1}'", item.Identity, item.OutputPath);
PublishItemsOutputGroupTests.cs (3)
39Log, 58Log.WriteLine("PublishItemsOutputGroup contains '{0}' items:", items.Count()); 61Log.WriteLine(" '{0}': TargetPath = '{1}', IsKeyOutput = '{2}'", item.Identity, item.TargetPath, item.IsKeyOutput);
PublishWpfApp.cs (3)
19new DotnetNewCommand(Log) 42var restoreCommand = new RestoreCommand(Log, testDir.Path); 47var publishCommand = new PublishCommand(Log, testDir.Path);
RuntimeIdentifiersTests.cs (8)
66new RunExeCommand(Log, selfContainedExecutableFullPath) 108new RunExeCommand(Log, selfContainedExecutableFullPath) 175new RunExeCommand(Log, selfContainedExecutableFullPath) 215var publishCommand = new DotnetPublishCommand(Log); 246var publishCommand = new DotnetPublishCommand(Log); 283var publishCommand = new DotnetPublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 329var publishCommand = new DotnetPublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 379var publishCommand = new DotnetPublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name));
Microsoft.NET.Rebuild.Tests (2)
GivenThatWeWantToRebuildAProject.cs (2)
21.Restore(Log); 35var rebuildCommand = new RebuildCommand(Log, testAsset.TestRoot);
Microsoft.NET.Restore.Tests (21)
GivenThatWeWantAutomaticTargetingPackReferences.cs (3)
43testAsset.GetRestoreCommand(Log, relativePath: testProject.Name); 95var restoreCommand = testAsset.GetRestoreCommand(Log, relativePath: testProject.Name); 163testAsset.GetRestoreCommand(Log, relativePath: testProject.Name);
GivenThatWeWantRestoreToUseImplicitPackages.cs (2)
38testAsset.GetRestoreCommand(Log, relativePath: testProjectName); 72testAsset.GetRestoreCommand(Log, relativePath: testProjectName);
GivenThatWeWantToIgnoreObsoleteDotNetCliToolPackages.cs (1)
41RestoreCommand restoreCommand = toolProjectInstance.GetRestoreCommand(Log, toolProject.Name);
GivenThatWeWantToRestoreDotNetCliToolReference.cs (2)
34var packCommand = new PackCommand(Log, Path.Combine(toolProjectInstance.TestRoot, toolProject.Name)); 58toolReferenceProjectInstance.GetRestoreCommand(log: Log, relativePath: toolReferenceProject.Name);
GivenThatWeWantToRestoreProjectsUsingNuGetConfigProperties.cs (6)
39var restoreCommand = testProjectTestAsset.GetRestoreCommand(Log, relativePath: testProjectName); 58var restoreCommand = testProjectTestAsset.GetRestoreCommand(Log, relativePath: testProjectName); 73var restoreCommand = testProjectTestAsset.GetRestoreCommand(Log, relativePath: testProjectName); 88var restoreCommand = testProjectTestAsset.GetRestoreCommand(Log, relativePath: testProjectName); 142Log, 148new PackCommand(Log, dependencyProjectDirectory)
GivenThatWeWantToRestoreProjectsWithPackageDowngrades.cs (2)
29var restoreCommand = testAsset.GetRestoreCommand(Log, relativePath: testProjectName); 60var restoreCommand = testAsset.GetRestoreCommand(Log, relativePath: testProjectName);
GivenThatWeWantToUseFrameworkRoslyn.cs (4)
33testAsset.GetRestoreCommand(Log, relativePath: testProjectName) 72testAsset.GetRestoreCommand(Log, relativePath: testProjectName) 104testAsset.GetRestoreCommand(Log, relativePath: testProjectName); 127testAsset.GetRestoreCommand(Log, relativePath: testProjectName)
RestoreWithOlderNuGet.cs (1)
24var restoreCommand = new NuGetExeRestoreCommand(Log, testAsset.Path, testProject.Name)
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (8)
WasmBuildIntegrationTest.cs (1)
707new DotnetRestoreCommand(Log, "-bl:msbuild-restore.binlog", "-r", "linux-x64")
WasmBuildLazyLoadTest.cs (1)
261var publishCommand = new PublishCommand(Log, Path.Combine(testInstance.TestRoot, "blazorwasm"));
WasmCompressionTests.cs (4)
50publishCommand = new PublishCommand(Log, Path.Combine(testInstance.TestRoot, "blazorhosted")); 99publishCommand = new PublishCommand(Log, Path.Combine(testInstance.TestRoot, "blazorhosted")); 116var publishCommand = new PublishCommand(Log, Path.Combine(testInstance.TestRoot, "blazorhosted")); 148var publishCommand = new PublishCommand(Log, Path.Combine(testInstance.TestRoot, "blazorhosted"));
WasmPublishIntegrationTest.cs (2)
1243var publishCommand = new DotnetPublishCommand(Log, Path.Combine(testInstance.TestRoot, "blazorhosted")); 1268var publishCommand = new DotnetPublishCommand(Log, Path.Combine(testInstance.TestRoot, "blazorhosted"));
Microsoft.NET.Sdk.Razor.Tests (11)
BuildIntrospectionTest.cs (2)
102var build = new MSBuildCommand(Log, "_IntrospectWatchItems", projectDirectory.Path); 118var build = new MSBuildCommand(Log, "_IntrospectRazorGenerateComponentDesignTime", projectDirectory.Path);
DesignTimeBuildIntegrationTest.cs (3)
20var command = new MSBuildCommand(Log, "Compile", projectDirectory.Path); 42var command = new MSBuildCommand(Log, "RazorGenerateDesignTime;_IntrospectRazorGenerateWithTargetPath", projectDirectory.Path); 73var command = new MSBuildCommand(Log, "RazorGenerateComponentDesignTime;_IntrospectRazorComponentWithTargetPath", projectDirectory.Path);
MvcBuildIntegrationTest21NetFx.cs (2)
66var publish = new PublishCommand(Log, project.TestRoot); 87var publish = new PublishCommand(Log, project.TestRoot);
MvcBuildIntegrationTest50.cs (1)
69var clean = new MSBuildCommand(Log, "Clean", build.FullPathProjectFile);
MvcBuildIntegrationTestLegacy.cs (2)
72var publish = new PublishCommand(Log, project.TestRoot); 94var publish = new PublishCommand(Log, project.TestRoot);
PublishIntegrationTest.cs (1)
51var publish = new PublishCommand(Log, projectDirectory.TestRoot);
Microsoft.NET.Sdk.StaticWebAssets.Tests (1)
StaticWebAssetsIntegrationTest.cs (1)
458var clean = new CleanCommand(Log, ProjectDirectory.Path);
Microsoft.NET.Sdk.Web.Tests (1)
PublishTests.cs (1)
91var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name));
Microsoft.NET.Sdk.WorkloadManifestReader.Tests (8)
WorkloadPackGroupTests.cs (8)
21Log.WriteLine(manifestDirectory); 32Log.WriteLine(manifest.Id + "\t" + manifest.ManifestPath); 46Log.WriteLine(sb.ToString()); 62Log.WriteLine(group.Workload.Id); 67Log.WriteLine($"\t{pack.Id}\t{pack.Version}\t{pack.ResolvedPackageId}"); 71Log.WriteLine($"\t{pack.Id}\t{pack.Version}"); 76Log.WriteLine($"\tUnavailable: {unavailablePack}"); 89Log.WriteLine(manifestInfo.Id + ": " + manifestInfo.ManifestFeatureBand);
Microsoft.NET.TestFramework (1)
AspNetSdkTest.cs (1)
109var rebuild = new RebuildCommand(Log, asset.Path, relativePathToProject);
Microsoft.NET.ToolPack.Tests (12)
GivenThatWeWantToPackAToolProject.cs (3)
93var packCommand = new PackCommand(Log, helloWorldAsset.TestRoot); 184Log, 320var packCommand = new PackCommand(Log, helloWorldAsset.TestRoot);
GivenThatWeWantToPackAToolProjectWithComplexNugetDependency.cs (1)
34var packCommand = new PackCommand(Log, helloWorldAsset.TestRoot);
GivenThatWeWantToPackAToolProjectWithGeneratePackageOnBuild.cs (1)
97var packCommand = new PackCommand(Log, appProjectDirectory);
GivenThatWeWantToPackAToolProjectWithPackagedShim.cs (5)
158new PackCommand(Log, helloWorldAsset.TestRoot).Execute().Should().Pass(); 208var packCommand = new PackCommand(Log, helloWorldAsset.TestRoot); 211var cleanCommand = new CleanCommand(Log, helloWorldAsset.TestRoot); 400var packCommand = new PackCommand(Log, Path.Combine(asset.Path, testProject.Name)); 446var command = new RunExeCommand(Log, shimPath)
GivenThatWeWantToPackAToolTargetingNonSupportedTFM.cs (1)
42var packCommand = new PackCommand(Log, helloWorldAsset.TestRoot);
GivenThatWeWantToTestPackAToolProject.cs (1)
20var testCommand = new DotnetCommand(Log, "test", appProjectDirectory);
msbuild.Integration.Tests (6)
GivenDotnetInvokesMSBuild.cs (6)
24new DotnetCommand(Log) 40var cmd = new DotnetCommand(Log) 61var cmd = new DotnetCommand(Log) 78var cmd = new DotnetCommand(Log) 92var cmd = new DotnetCommand(Log) 105var cmd = new DotnetCommand(Log)