6 instantiations of CommandResult
dotnet.Tests (2)
BuildServerTests\RazorServerTests.cs (1)
135commandMock.Setup(c => c.Execute()).Returns(new CommandResult(null, exitCode, "", stdErr));
BuildServerTests\VBCSCompilerServerTests.cs (1)
44commandMock.Setup(c => c.Execute()).Returns(new CommandResult(null, exitCode, "", stdErr));
dotnet-MsiInstallation.Tests (1)
Framework\VMAction.cs (1)
350return new CommandResult(
Microsoft.DotNet.Cli.Utils (3)
BuiltInCommand.cs (1)
75return new CommandResult(startInfo, exitCode, null, null);
Command.cs (1)
89return new CommandResult(
CommandResult.cs (1)
10public static readonly CommandResult Empty = new();
862 references to CommandResult
ArgumentForwarding.Tests (3)
ArgumentForwardingTests.cs (2)
169var commandResult = CommandFactoryUsingResolver.Create("dotnet", new[] { ReflectorPath }.Concat(rawEvaluatedArgument)) 194var commandResult = cmd
Program.cs (1)
74var result = command.Execute();
containerize.UnitTests (1)
Program.cs (1)
74var result = command.Execute();
dotnet (8)
BuildServer\RazorServer.cs (1)
48var result = command.Execute();
BuildServer\VBCSCompilerServer.cs (1)
70var result = command.Execute();
Commands\Tool\Execute\ToolExecuteCommand.cs (1)
137var result = command.Execute();
Commands\Tool\Install\ProjectRestorer.cs (1)
51var result = command.Execute();
Commands\Tool\Run\ToolRunCommand.cs (1)
43var result = CommandFactoryUsingResolver.Create(commandSpec).Execute();
FilePermissionSetter.cs (1)
34CommandResult result = new CommandFactory.CommandFactory()
NugetPackageDownloader\FirstPartyNuGetPackageSigningVerifier.cs (1)
85var commandResult = command.CaptureStdOut().Execute();
Program.cs (1)
277var result = resolvedCommand.Execute();
dotnet.Tests (379)
CommandTests\Build\GivenDotnetBuildBuildsCsproj.cs (2)
163var cmd = new DotnetBuildCommand(Log) 177var cmd = new DotnetBuildCommand(Log)
CommandTests\Build\GivenDotnetBuildBuildsDcproj.cs (1)
24var cmd = new DotnetBuildCommand(Log)
CommandTests\CommandIntegrationTests.cs (2)
13var cmd = new DotnetCommand(Log).Execute(string.Empty); 20var cmd = new DotnetCommand(Log).Execute("-d");
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 (3)
60var result = new DotnetCommand(Log) 87var result = new DotnetCommand(Log) 102var result = new DotnetCommand(Log)
CommandTests\NuGet\GivenANuGetCommand.cs (1)
167var listPackageCommandResult = new DotnetCommand(Log, "package", "list", "--format", "json")
CommandTests\Pack\PackTests.cs (11)
25var result = packCommand.Execute("-c", "Test"); 174var result = new DotnetPackCommand(Log) 208var result = packCommand.Execute("-c", "Debug", "--serviceable"); 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 (5)
26var cmd = new DotnetCommand(Log) 95var cmd = new DotnetCommand(Log) 284var cmd = new DotnetCommand(Log) 384var cmd = new DotnetCommand(Log, "package", "add", "A", "--file", "Program.cs") 421var cmd = new DotnetCommand(Log, "package", "add", "A", "--prerelease", "--file", "Program.cs")
CommandTests\Package\List\GivenDotnetListPackage.cs (1)
52var cmd = new DotnetCommand(Log)
CommandTests\Package\Remove\GivenDotnetRemovePackage.cs (4)
50var cmd = new DotnetCommand(Log).Execute($"remove", "package", helpArg); 60var cmd = new DotnetCommand(Log) 74var add = new DotnetCommand(Log) 80var remove = new DotnetCommand(Log)
CommandTests\Publish\GivenDotnetPublishPublishesProjects.cs (1)
409var cmd = new DotnetPublishCommand(Log)
CommandTests\Reference\Add\GivenDotnetAddReference.cs (36)
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") 265var cmd = new DotnetCommand(Log, "add", lib.CsProjName, "reference") 287var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 309var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 331var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 353var cmd = new DotnetCommand(Log, "add", lib.CsProjName, "reference") 371var cmd = new DotnetCommand(Log, "add", proj.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 (11)
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)
CommandTests\Reference\Remove\GivenDotnetRemoveP2P.cs (24)
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 (1)
200var restoreCommand = new DotnetRestoreCommand(Log)
CommandTests\Run\GivenDotnetRunBuildsCsProj.cs (22)
78var result = new 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") 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") 784var result = new DotnetCommand(Log, "run") 1012var result = new DotnetCommand(Log, "run")
CommandTests\Run\GivenDotnetRunBuildsVbProj.cs (4)
24var runResult = new DotnetCommand(Log, "run") 44var runResult = new DotnetCommand(Log, "run") 104var cmd = new DotnetCommand(Log, "run") 124var cmd = new DotnetCommand(Log, "run")
CommandTests\Run\GivenDotnetRunUsesTargetExtension.cs (2)
26var runResult = new DotnetCommand(Log, "run") 52var runResult = new DotnetCommand(Log, "run")
CommandTests\Run\RunFileTests.cs (7)
159var result = new DotnetCommand(Log, "run", path) 277var result = new DotnetCommand(Log, "run", "program.cs") 2580var result = new DotnetCommand(Log, "build", "-getProperty:UserSecretsId", "Program.cs") 3325var cscResult = new DotnetCommand(Log, "run", "Program.cs", "-bl") 3337var msbuildResult = new DotnetCommand(Log, "run", "Program.cs", "-bl") 4215var fileBasedResult = new DotnetCommand(Log, [subcommand, "Program.cs", .. args]) 4223var projectBasedResult = new DotnetCommand(Log, [subcommand, .. args])
CommandTests\Sdk\Check\GivenDotnetSdkCheck.cs (1)
41var cmd = new DotnetCommand(Log)
CommandTests\Solution\Add\GivenDotnetSlnAdd.cs (40)
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) 264CommandResult cmd; 307CommandResult cmd; 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) 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) 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) 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 (26)
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) 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\Test\GivenDotnetTestBuildsAndDiscoversTests.cs (8)
6using CommandResult = Microsoft.DotNet.Cli.Utils.CommandResult; 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 (4)
8using CommandResult = Microsoft.DotNet.Cli.Utils.CommandResult; 34CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 60CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 89CommandResult result = new DotnetVSTestCommand(Log)
CommandTests\Test\GivenDotnetTestBuildsAndRunsHelp.cs (4)
6using CommandResult = Microsoft.DotNet.Cli.Utils.CommandResult; 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 (4)
5using CommandResult = Microsoft.DotNet.Cli.Utils.CommandResult; 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 (26)
24CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 51CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 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) 320CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true, ConsoleLoggerOutputNormal) 348CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 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) 822CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 844CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true)
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestFromCsprojForMultipleTFM.cs (3)
36var result = new DotnetTestCommand(Log, disableNewOutput: true, "-r", runtime) 73CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 116CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true, ConsoleLoggerOutputNormal)
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestfromCsprojWithCorrectTestRunParameters.cs (2)
24CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true) 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 (21)
6using CommandResult = Microsoft.DotNet.Cli.Utils.CommandResult; 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 (6)
6using CommandResult = Microsoft.DotNet.Cli.Utils.CommandResult; 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 (3)
6using CommandResult = Microsoft.DotNet.Cli.Utils.CommandResult; 24CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false) 61CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false)
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestsWithDifferentOptions.cs (26)
7using CommandResult = Microsoft.DotNet.Cli.Utils.CommandResult; 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 (1)
31CommandResult result = (projectName is null ? new DotnetTestCommand(Log, disableNewOutput: true) : new DotnetTestCommand(Log, disableNewOutput: true, projectName))
CommandTests\Test\GivenDotnetTestForwardDotnetRootEnvironmentVariables.cs (1)
28var result = command.Execute(ConsoleLoggerOutputDetailed);
CommandTests\Test\GivenDotnetTestRunsConsoleAppWithoutHandshake.cs (2)
5using CommandResult = Microsoft.DotNet.Cli.Utils.CommandResult; 26CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false)
CommandTests\Test\GivenDotnetTestsRunsInDifferentCultures.cs (1)
26var result = command.Execute();
CommandTests\Test\GivenDotnetTestsRunsWithDifferentCultures.cs (2)
4using CommandResult = Microsoft.DotNet.Cli.Utils.CommandResult; 22CommandResult result = new DotnetTestCommand(Log, disableNewOutput: false)
CommandTests\Test\MTPHelpSnapshotTests.cs (2)
6using CommandResult = Microsoft.DotNet.Cli.Utils.CommandResult; 24CommandResult 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\ToolInstallGlobalOrToolPathCommandTests.cs (3)
938var result = toolInstallCommand.Execute(); 965var result = toolInstallCommand.Execute(); 992var result = toolInstallCommand.Execute();
CommandTests\VSTest\VSTestTests.cs (5)
37var result = new DotnetVSTestCommand(Log) 66CommandResult result = new DotnetVSTestCommand(Log) 110var result = new DotnetVSTestCommand(Log) 136CommandResult result = new DotnetVSTestCommand(Log) 178CommandResult result = new DotnetVSTestCommand(Log)
CommandTests\Workload\Install\GivenDotnetWorkloadInstall.cs (1)
165var commandResult = command
CommandTests\Workload\Install\GivenWorkloadManifestUpdater.cs (2)
592var commandResult = command 630var commandResult = command
GivenThatTheUserEnablesThePerfLog.cs (2)
19var result = new DotnetCommand(Log, "--help") 32var result = new DotnetCommand(Log, "--help")
GivenThatTheUserIsRunningDotNetForTheFirstTime.cs (4)
46public CommandResult FirstDotnetNonVerbUseCommandResult; 47public CommandResult FirstDotnetVerbUseCommandResult; 48public CommandResult FirstDotnetWorkloadInfoResult; 187var result = command.Execute("new", "--debug:ephemeral-hive");
GivenThatTheUserRequestsHelp.cs (2)
36var result = new DotnetCommand(Log) 46var result = new DotnetCommand(Log)
OutputPathOptionTests.cs (1)
64Microsoft.DotNet.Cli.Utils.CommandResult commandResult;
PackagedCommandTests.cs (3)
68var result = new DotnetCommand(Log) 126var result = new DotnetCommand(Log) 244CommandResult result = new DotnetCommand(Log, "hello")
Program.cs (1)
74var result = command.Execute();
VersionTest.cs (2)
27CommandResult result = new DotnetCommand(Log) 37var result = new DotnetCommand(Log)
dotnet-format.UnitTests (1)
Program.cs (1)
74var result = command.Execute();
dotnet-MsiInstallation.Tests (26)
Framework\VirtualMachine.cs (1)
347var result = VMControl.RunCommandOnVM(action.Arguments.ToArray(), workingDirectory: action.WorkingDirectory);
Framework\VMAction.cs (2)
25public CommandResult Execute() 341public CommandResult ToCommandResult()
Framework\VMControl.cs (2)
74public CommandResult RunCommandOnVM(string[] args, string workingDirectory = null) 80var result = remoteCommand.Execute();
Framework\VMTestBase.cs (6)
133var result = VM.CreateRunCommand("dotnet", "--version") 191var result = command.Execute(); 196protected CommandResult InstallWorkload(string workloadName, bool skipManifestUpdate) 208var result = VM.CreateRunCommand(args) 219var result = VM.CreateRunCommand("dotnet", "workload", "update", "--print-rollback") 240var result = VM.CreateRunCommand("dotnet", "workload", "--version")
MsiInstallerTests.cs (7)
52private CommandResult ApplyManifests(string manifestContents, string rollbackID) 54CommandResult result = VM.CreateActionGroup("Rollback to " + rollbackID + " manifests", 62CommandResult ApplyRC1Manifests() 67CommandResult Apply8_0_101Manifests() 111var versionResult = command.Execute(); 295var result = VM.CreateRunCommand("dotnet", "publish", "/p:RunAotCompilation=true") 364var result = VM.CreateRunCommand("dotnet", "workload", "list", "--machine-readable")
Program.cs (1)
74var result = command.Execute();
VSWorkloadTests.cs (1)
21var result = VM.CreateRunCommand("dotnet", "workload", "list")
WorkloadSetTests.cs (1)
332var searchVersionResult = VM.CreateRunCommand("dotnet", "workload", "search", "version")
WorkloadSetTests2.cs (1)
36var result = VM.CreateRunCommand("dotnet", "workload", "update", "--print-rollback")
WorkloadSetTestsBase.cs (4)
77var result = VM.CreateRunCommand("dotnet", "workload", "--version") 89var result = VM.CreateRunCommand("dotnet", "--info") 101var result = VM.CreateRunCommand("dotnet", "workload", "--info") 113var result = VM.CreateRunCommand("dotnet", "workload", "config", "--update-mode")
dotnet-new.IntegrationTests (189)
DotnetNewArgumentsTests.cs (1)
18var dotnetNewHelpOutput = new DotnetNewCommand(_log, "--help")
DotnetNewCompleteTests.cs (2)
21CommandResult commandResult = new DotnetCommand(_log, "complete", $"new --debug:custom-hive {homeDir} ").Execute(); 40CommandResult commandResult = new DotnetCommand(_log, "complete", $"new co --debug:custom-hive {homeDir} --language C#", "--position", "7")
DotnetNewDebugOptionsTests.cs (7)
24CommandResult commandResult = new DotnetNewCommand(_log) 32CommandResult reinitCommandResult = new DotnetNewCommand(_log, "--debug:reinit") 48CommandResult commandResult = new DotnetNewCommand(_log) 56CommandResult reinitCommandResult = new DotnetNewCommand(_log, "--debug:rebuildcache") 70CommandResult commandResult = new DotnetNewCommand(_log, "--debug:show-config") 127CommandResult commandResult = new DotnetNewCommand(_log, "list", "--debug:disable-sdk-templates") 141CommandResult commandResult = new DotnetNewCommand(_log, "console", "--debug:disable-sdk-templates")
DotnetNewDetailsTest.Approval.cs (8)
19CommandResult commandResult = new DotnetNewCommand(_log, "details", _nuGetPackageId, "--version", "4.8.0-dev.604") 52var commandResult = createCommandResult(); 64CommandResult commandResult = new DotnetNewCommand(_log, "details", "Microsoft.Azure.WebJobs.ItemTemplates", "--version", "4.0.2288") 82CommandResult commandResult = new DotnetNewCommand(_log, "details", packageName) 110CommandResult commandResult = new DotnetNewCommand(_log, "details", "Microsoft.TemplateEngine.TestTemplates") 136CommandResult commandResult = new DotnetNewCommand(_log, "details", _nuGetPackageId) 163CommandResult commandResult = new DotnetNewCommand(_log, "details", packageName) 189CommandResult commandResult = new DotnetNewCommand(_log, "details", basicFSharp)
DotnetNewHelpTests.Approval.cs (23)
20CommandResult commandResult = new DotnetNewCommand(_log, command) 40CommandResult commandResult = new DotnetNewCommand(_log, "create", option) 60CommandResult commandResult = new DotnetNewCommand(_log, "install", option) 80CommandResult commandResult = new DotnetNewCommand(_log, "update", option) 100CommandResult commandResult = new DotnetNewCommand(_log, "uninstall", option) 120CommandResult commandResult = new DotnetNewCommand(_log, "list", option) 140CommandResult commandResult = new DotnetNewCommand(_log, "search", option) 163CommandResult commandResult = new DotnetNewCommand(_log, command.Split(" ")) 184CommandResult commandResult = new DotnetNewCommand(_log, "classli", "-h") 198CommandResult commandResult = new DotnetNewCommand(_log, "Console App", "-h") 215CommandResult commandResult = new DotnetNewCommand(_log, "basic", "--help") 231CommandResult commandResult = new DotnetNewCommand(_log, "TestAssets.TemplateWithMultiValueChoice", "--help") 246CommandResult commandResult = new DotnetNewCommand(_log, "console", "--help", "--framework", "net7.0") 264CommandResult commandResult = new DotnetNewCommand(_log, "console", "--help", "--framework") 279CommandResult commandResult = new DotnetNewCommand(_log, "console", "--help", "--do-not-exist") 294CommandResult commandResult = new DotnetNewCommand(_log, "console", "--help", "--langVersion", "8.0") 309CommandResult commandResult = new DotnetNewCommand(_log, "console", "--help", "--language", "F#") 327CommandResult commandResult = new DotnetNewCommand(_log, "console", "--help", "--langVersion") 346CommandResult commandResult = new DotnetNewCommand(_log, templateName, "--help") 361CommandResult commandResult = new DotnetNewCommand(_log, "TestAssets.TemplateWithRequiredParameters", "--help") 380CommandResult commandResult = new DotnetNewCommand(_log, "TestAssets.TemplateWithConditionalParameters", "--help") 399CommandResult commandResult = new DotnetNewCommand(_log, "basic", "--help") 418CommandResult commandResult = new DotnetNewCommand(_log, "basic2", "--help")
DotnetNewInstallTests.Approval.cs (12)
13CommandResult commandResult = new DotnetNewCommand(_log, "install", "Microsoft.DotNet.Common.ItemTemplates@6.0.100") 32CommandResult commandResult = new DotnetNewCommand(_log, "install", "Microsoft.DotNet.Common.ItemTemplates@6.0.100", "--force") 52CommandResult commandResult = new DotnetNewCommand(_log, "install", "Microsoft.DotNet.Common.ItemTemplates@6.0.100", "Microsoft.DotNet.Web.ItemTemplates@5.0.0") 73CommandResult commandResult = new DotnetNewCommand(_log, commandName, "Microsoft.DotNet.Web.ItemTemplates@5.0.0") 90CommandResult commandResult = new DotnetNewCommand(_log, "install", "Microsoft.DotNet.Web.ItemTemplates@5.0.0") 106CommandResult commandResult = new DotnetNewCommand(_log, "install", testTemplateLocation) 135CommandResult commandResult = new DotnetNewCommand(_log, "install", basicFSharp, "--force") 157CommandResult commandResult = new DotnetNewCommand(_log, "install", "Microsoft.DotNet.Common.ProjectTemplates.5.0@5.0.0", "--force") 182CommandResult commandResult = new DotnetNewCommand(_log, "install", "Microsoft.DotNet.Common.ProjectTemplates.5.0@5.0.0") 213CommandResult commandResult = new DotnetNewCommand(_log, "install", basicFSharp) 229CommandResult commandResult = new DotnetNewCommand(_log, "install", templateToInstall) 252CommandResult commandResult = new DotnetNewCommand(_log, "install", templateToInstall)
DotnetNewInstallTests.cs (7)
65CommandResult command1 = new DotnetNewCommand(_log, commandName, "Microsoft.DotNet.Common.ProjectTemplates.5.0") 70CommandResult command2 = new DotnetNewCommand(_log, commandName, $"Microsoft.DotNet.Common.ProjectTemplates.5.0@") 75CommandResult command3 = new DotnetNewCommand(_log, commandName, $"Microsoft.DotNet.Common.ProjectTemplates.5.0@*") 80foreach (CommandResult commandResult in new[] { command1, command2, command3 }) 129CommandResult command1 = new DotnetNewCommand(_log, commandName, "Microsoft.DotNet.Common.ProjectTemplates.5.0@5.*") 134CommandResult command2 = new DotnetNewCommand(_log, commandName, "Microsoft.DotNet.Common.ProjectTemplates.5.0@5.0.*") 139foreach (CommandResult commandResult in new[] { command1, command2 })
DotnetNewInstantiateTests.Approval.cs (30)
14CommandResult commandResult = new DotnetNewCommand(_log, "unknownapp") 30CommandResult commandResult = new DotnetNewCommand(_log, "console", "--language", "D#") 46CommandResult commandResult = new DotnetNewCommand(_log, "console", "--type", "item") 67CommandResult commandResult = new DotnetNewCommand(_log, "basic") 88CommandResult commandResult = new DotnetNewCommand(_log, "basic") 117CommandResult commandResult = new DotnetNewCommand(_log, "Console App") 136CommandResult commandResult = new DotnetNewCommand(_log, "TestAssets.TemplateWithPreferDefaultNameButNoDefaultName") 154CommandResult commandResult = new DotnetNewCommand(_log, "console", "--fake") 172CommandResult commandResult = new DotnetNewCommand(_log, "console", "--framework", "fake") 190var commandResult = new DotnetNewCommand(_log, "console", "--framework", "net") 208CommandResult commandResult = new DotnetNewCommand(_log, "console", "--framework", "netcoreapp", "--fake") 229CommandResult commandResult = new DotnetNewCommand(_log, "basic") 269CommandResult commandResult = new DotnetNewCommand(_log, args) 293CommandResult commandResult = new DotnetNewCommand(_log, "TestAssets.TemplateWithMultiValueChoice", "--Platform", "") 316CommandResult commandResult = new DotnetNewCommand( 349CommandResult commandResult = new DotnetNewCommand(_log, "TestAssets.TemplateWithMultiValueChoice", "--Platform", "", "--Platform", "MacOS") 394CommandResult commandResult = new DotnetNewCommand(_log, "TestAssets.TemplateWithSourceNameAndCustomTargetPath", "-o", _OUT_FOLDER, "--dry-run") 434CommandResult commandResult = new DotnetNewCommand(_log, "console", "--name", "overwrite-test", "-o", "folderA") 471CommandResult commandResult = new DotnetNewCommand(_log, "TestAssets.Invalid.InvalidHostData") 502CommandResult commandResult = new DotnetNewCommand(_log, "gitignore") 527CommandResult commandResult = new DotnetNewCommand(_log, "sameshortname") 554CommandResult commandResult = new DotnetNewCommand(_log, "Constraints.RestrictedTemplate") 576CommandResult commandResult = new DotnetNewCommand(_log, "Constraints.RestrictedTemplate", "--force") 609CommandResult commandResult = new DotnetNewCommand(_log, "TestAssets.TemplateWithSourceName") 629CommandResult commandResult = new DotnetNewCommand(_log, "cnsle") 645CommandResult commandResult = new DotnetNewCommand(_log, "uninstal") 665CommandResult commandResult = new DotnetNewCommand(_log, "create", "TestAssets.TemplateWithSourceName") 687CommandResult commandResult = new DotnetNewCommand(_log, parameters.Split("|")) 713CommandResult commandResult = new DotnetNewCommand(_log, parameters.Split("|")) 738CommandResult commandResult = new DotnetNewCommand(_log, parameters.Split("|"))
DotnetNewInstantiateTests.cs (10)
100Utils.CommandResult commandResult = new DotnetNewCommand(_log, "console", "--no-restore") 110Utils.CommandResult forceCommandResult = new DotnetNewCommand(_log, "console", "--no-restore", "--force") 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) 457CommandResult result = new DotnetNewCommand(Log)
DotnetNewListTests.Approval.cs (5)
15CommandResult commandResult = new DotnetNewCommand(_log, commandName) 34CommandResult commandResult = new DotnetNewCommand(_log, "list") 100CommandResult commandResult = new DotnetNewCommand(_log, "list", "RestrictedTemplate") 118CommandResult commandResult = new DotnetNewCommand(_log, "list", "RestrictedTemplate", "--ignore-constraints") 135CommandResult commandResult = new DotnetNewCommand(_log, "list")
DotnetNewListTests.cs (3)
573CommandResult commandResult1 = new DotnetNewCommand(_log, command1.Split()) 577CommandResult commandResult2 = new DotnetNewCommand(_log, command2.Split()) 598CommandResult commandResult = new DotnetNewCommand(_log, command.Split())
DotnetNewLocaleTests.cs (4)
30CommandResult commandResult = new DotnetNewCommand(_log, "-i", testTemplatesFolder) 54CommandResult commandResult = new DotnetNewCommand(_log, "-i", testTemplatesFolder) 117CommandResult commandResult = new DotnetNewCommand(_log, "-i", testTemplateLocation) 198CommandResult result = new DotnetNewCommand(_log, "-i", tmpTemplateLocation)
DotnetNewSearchTests.Approval.cs (2)
15CommandResult commandResult = new DotnetNewCommand(_log, testCase) 32CommandResult commandResult = new DotnetNewCommand(_log, "search", "do-not-exist")
DotnetNewSearchTests.cs (23)
25CommandResult commandResult = new DotnetNewCommand(_log, testCase.Split(" ")) 81CommandResult commandResult = new DotnetNewCommand(_log, testCase.Split(" ")) 110CommandResult commandResult = new DotnetNewCommand(_log, testCase.Split(" ")) 137CommandResult commandResult = new DotnetNewCommand(_log, testCase.Split(" ")) 168CommandResult commandResult = new DotnetNewCommand(_log, testCase.Split(" ")) 197CommandResult commandResult = new DotnetNewCommand(_log, testCase.Split(" ")) 228CommandResult commandResult = new DotnetNewCommand(_log, testCase.Split(" ")) 260CommandResult commandResult = new DotnetNewCommand(_log, testCase.Split(" ")) 293CommandResult commandResult = new DotnetNewCommand(_log, testCase.Split(" ")) 323CommandResult commandResult = new DotnetNewCommand(_log, testCase.Split(" ")) 354CommandResult commandResult = new DotnetNewCommand(_log, testCase.Split(" ")) 385CommandResult commandResult = new DotnetNewCommand(_log, testCase.Split(" ")) 416CommandResult commandResult = new DotnetNewCommand(_log, testCase.Split(" ")) 447CommandResult commandResult = new DotnetNewCommand(_log, testCase.Split(" ")) 487CommandResult commandResult = new DotnetNewCommand(_log, "con", "--search", "--framework") 553CommandResult commandResult = new DotnetNewCommand(_log, "con", "--search", "--langVersion") 600CommandResult commandResult = new DotnetNewCommand(_log, "con", "--search", "--langVersion", "smth") 647CommandResult commandResult = new DotnetNewCommand(_log, "con", "--search", "-f", "netcoreapp3.1") 719CommandResult commandResult1 = new DotnetNewCommand(_log, command1.Split()) 723CommandResult commandResult2 = new DotnetNewCommand(_log, command2.Split()) 742CommandResult commandResult = new DotnetNewCommand(_log, command.Split()) 768CommandResult commandResult = new DotnetNewCommand(_log, "--search", "console") 782CommandResult commandResult = new DotnetNewCommand(_log, "search", "console")
DotnetNewTests.cs (8)
22CommandResult commandResult = new DotnetNewCommand(_log) 39CommandResult commandResult = new DotnetNewCommand(_log, "search", "template-does-not-exist", optionName, optionValue) 52CommandResult commandResult = new DotnetNewCommand(_log, "search", "template-does-not-exist") 71CommandResult commandResult = new DotnetNewCommand(_log, "search", "template-does-not-exist", optionName, optionValue) 91CommandResult commandResult = new DotnetNewCommand(_log, "search", "template-does-not-exist", optionName, optionValue) 112CommandResult commandResult = new DotnetNewCommand( 131CommandResult commandResult = new DotnetNewCommand(_log, "console", "--dry-run") 151CommandResult commandResult = new DotnetNewCommand(_log, "console", "--dry-run")
DotnetNewTestTemplatesTests.cs (3)
116var result = new DotnetTestCommand(_log, false) 154var result = new DotnetTestCommand(_log, false) 206var result = new DotnetTestCommand(_log, false)
DotnetNewUninstallTests.Approval.cs (2)
16CommandResult commandResult = new DotnetNewCommand(_log, "uninstall") 38CommandResult commandResult = new DotnetNewCommand(_log, "uninstall", "TemplateWithRequiredParameters")
DotnetNewUninstallTests.cs (2)
520CommandResult commandResult = new DotnetNewCommand(_log, commandName) 535CommandResult commandResult = new DotnetNewCommand(_log, "uninstall")
DotnetNewUpdateTests.Approval.cs (2)
16CommandResult commandResult = new DotnetNewCommand(_log, "update") 43CommandResult commandResult = new DotnetNewCommand(_log, "update")
DotnetNewUpdateTests.cs (4)
222Utils.CommandResult commandResult = new DotnetNewCommand(_log, "--update-check") 237Utils.CommandResult commandResult = new DotnetNewCommand(_log, "update", "--check-only") 337Utils.CommandResult commandResult = new DotnetNewCommand(_log, "--update-apply") 352Utils.CommandResult commandResult = new DotnetNewCommand(_log, "update")
Extensions.cs (1)
10internal static string FormatOutputStreams(this CommandResult commandResult)
MSBuildEvaluationTests.cs (5)
22CommandResult cmd = new DotnetNewCommand(Log) 60CommandResult cmd = new DotnetNewCommand(Log) 99CommandResult cmd = new DotnetNewCommand(Log) 139CommandResult cmd = new DotnetNewCommand(Log) 191CommandResult cmd = new DotnetNewCommand(Log)
PostActionTests.Approval.cs (9)
18CommandResult commandResult = new DotnetNewCommand(_log, "TestAssets.PostActions.RestoreNuGet.Basic", "-n", "MyProject") 50CommandResult commandResult = new DotnetNewCommand(_log, templateName, "--allow-scripts", "yes") 73CommandResult commandResult = new DotnetNewCommand(_log, templateName, "-n", "MyProject") 104CommandResult commandResult = new DotnetNewCommand(_log, templateName, "-n", "MyProject") 144CommandResult commandResult = new DotnetNewCommand(_log, templateName, "-n", "MyProject") 175CommandResult commandResult = new DotnetNewCommand(_log, templateName) 197CommandResult commandResult = new DotnetNewCommand(_log, templateName, "-n", "MyProject", "--dry-run") 221CommandResult commandResult = new DotnetNewCommand(_log, templateName) 241CommandResult commandResult = new DotnetNewCommand(_log, templateName, "--allow-scripts", "no")
PostActionTests.cs (12)
318CommandResult commandResult = new DotnetNewCommand(_log, templateName, "--allow-scripts", "yes") 351CommandResult commandResult = new DotnetNewCommand(_log, templateName, "--allow-scripts", "yes") 376CommandResult commandResult = new DotnetNewCommand(_log, templateName, "--allow-scripts", "yes") 401CommandResult commandResult = new DotnetNewCommand(_log, templateName, "--allow-scripts", "yes") 565var result = new DotnetCommand(_log, "--version") 612var result = new DotnetCommand(_log, "--version") 718CommandResult commandResult = new DotnetNewCommand(_log, templateName) 937CommandResult commandResult = new DotnetNewCommand(_log, templateName) 958CommandResult cmd = new DotnetNewCommand(Log) 979CommandResult cmd = new DotnetNewCommand(Log) 998CommandResult cmd = new DotnetNewCommand(Log) 1016CommandResult cmd = new DotnetNewCommand(Log)
Program.cs (1)
74var result = command.Execute();
WebProjectsTests.cs (3)
76CommandResult commandResult = new DotnetNewCommand(_log, "webapi", "-h") 93CommandResult commandResult = new DotnetNewCommand(_log, "mvc", "-h") 113CommandResult commandResult = new DotnetNewCommand(_log, templateName, "-h")
dotnet-watch.Tests (2)
HotReload\ApplyDeltaTests.cs (1)
1031var result = workloadInstallCommandSpec.Execute();
Program.cs (1)
74var result = command.Execute();
EndToEnd.Tests (2)
Program.cs (1)
74var result = command.Execute();
VersionTests.cs (1)
13var result = new DotnetCommand(Log).Execute("--version");
Microsoft.AspNetCore.Watch.BrowserRefresh.Tests (1)
Program.cs (1)
74var result = command.Execute();
Microsoft.CodeAnalysis.NetAnalyzers.UnitTests (1)
Program.cs (1)
74var result = command.Execute();
Microsoft.DotNet.ApiCompat.IntegrationTests (15)
CompatibleFrameworkInPackageValidatorIntegrationTests.cs (2)
59var result = packCommand.Execute(); 100var result = packCommand.Execute();
Task\ValidatePackageTargetIntegrationTests.cs (13)
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")) 93var result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 112var result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 134var result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 164var result = packCommand.Execute(); 206var result = packCommand.Execute(); 247var result = packCommand.Execute(); 276var result = packCommand.Execute(); 300var result = packCommand.Execute(); 323var result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 344var result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj"))
Microsoft.DotNet.ApiDiff.Tests (1)
Program.cs (1)
74var result = command.Execute();
Microsoft.DotNet.ApiSymbolExtensions.Tests (1)
AssemblySymbolLoaderTests.cs (1)
372private static CommandResult BuildTestAsset(TestAsset testAsset, out string outputDirectory)
Microsoft.DotNet.Cli.Utils (5)
BuiltInCommand.cs (1)
39public CommandResult Execute()
Command.cs (2)
26public CommandResult Execute() 30public CommandResult Execute(Action<Process>? processStarted)
CommandResult.cs (1)
10public static readonly CommandResult Empty = new();
ICommand.cs (1)
8CommandResult Execute();
Microsoft.DotNet.Cli.Utils.Tests (3)
BuiltInCommandTests.cs (2)
21CommandResult result = builtInCommand.Execute(); 56CommandResult result = new BuiltInCommand("fakeCommand", Enumerable.Empty<string>(), testCommand, environment)
Program.cs (1)
74var result = command.Execute();
Microsoft.DotNet.GenAPI.Tests (1)
Program.cs (1)
74var result = command.Execute();
Microsoft.DotNet.PackageInstall.Tests (2)
Program.cs (1)
74var result = command.Execute();
TestToolBuilder.cs (1)
198var result = new DotnetCommand(log, "nuget", "locals", "global-packages", "--list")
Microsoft.Extensions.DotNetDeltaApplier.Tests (1)
Program.cs (1)
74var result = command.Execute();
Microsoft.NET.Build.Containers.UnitTests (1)
Program.cs (1)
74var result = command.Execute();
Microsoft.NET.Build.Extensions.Tasks.UnitTests (1)
Program.cs (1)
74var result = command.Execute();
Microsoft.NET.Build.Tasks.UnitTests (1)
Program.cs (1)
74var result = command.Execute();
Microsoft.NET.Build.Tests (57)
AppHostTests.cs (1)
439var result = buildCommand.Execute(
AspNetCoreOnFullFramework.cs (1)
94var toolResult = toolCommand.Execute();
DesignTimeBuildTests.cs (1)
50var result = command.Execute(args);
GivenFrameworkReferences.cs (2)
248var result = buildCommand.Execute(); 412var result = buildCommand.Execute();
GivenThatAProjectHasntBeenRestored.cs (1)
61var result = buildCommand
GivenThatWeWantToBuildADesktopExe.cs (2)
446var result = buildCommand.Execute("/clp:summary"); 580var buildResult = buildCommand
GivenThatWeWantToBuildALibrary.cs (1)
700var restore = restoreCommand.Execute("/p:RestoreContinueOnError=ErrorAndContinue");
GivenThatWeWantToBuildAnAppWithLibrary.cs (1)
98var commandResult = new DotnetCommand(Log, Path.Combine(outputDir.FullName, "TestApp.dll"))
GivenThatWeWantToBuildAnAppWithoutTransitiveProjectRefs.cs (2)
179private (CommandResult BuildResult, IReadOnlyDictionary<string, DirectoryInfo> OutputDirectories) Build( 191var buildResult = buildCommand.ExecuteWithoutRestore([..msbuildArguments, $"/bl:{binlogDestPath}"]);
GivenThatWeWantToBuildANetCoreApp.cs (3)
214var result = buildCommand.ExecuteWithoutRestore($"/p:RuntimeIdentifier={runtimeIdentifier}"); 1045var result = new BuildCommand(testAsset).Execute(); 1086var result = new BuildCommand(testAsset).Execute();
GivenThatWeWantToBuildANetCoreAppForTelemetry.cs (1)
80var result = buildCommand
GivenThatWeWantToBuildASelfContainedApp.cs (1)
430var commandResult = buildCommand
GivenThatWeWantToControlGeneratedAssemblyInfo.cs (1)
862var result = new DotnetCommand(Log, "exec", exePath).Execute();
GivenThatWeWantToFilterSatelliteAssemblies.cs (2)
44var buildResult = buildCommand.Execute(); 108var buildResult = buildCommand.Execute();
GivenThatWeWantToFloatWarningLevels.cs (7)
57var buildResult = buildCommand.Execute(); 101var buildResult = buildCommand.Execute(); 146var buildResult = buildCommand.Execute(); 202var buildResult = buildCommand.Execute(); 249var buildResult = buildCommand.Execute(); 345var buildResult = buildCommand.Execute(); 464var buildResult = buildCommand.Execute();
GivenThatWeWantToGenerateADepsFileForATool.cs (2)
94private CommandResult GenerateDepsAndRunTool(TestProject toolProject, [CallerMemberName] string callingMethod = "") 237var toolResult = toolCommand.Execute();
GivenThatWeWantToPublishWithGeneratePackageOnBuildAndPackAsTool.cs (1)
35CommandResult result = buildCommand.Execute();
GivenThatWeWantToReferenceAProject.cs (1)
118var result = buildCommand.Execute();
GivenThatWeWantToResolveConflicts.cs (2)
437var itemsResult1 = getItemsCommand1.Execute("-getItem:PrunePackageReference"); 443var itemsResult2 = getItemsCommand2.Execute("-getItem:PrunePackageReference");
GivenThatWeWantToTargetEolFrameworks.cs (6)
35var result = buildCommand 59var result = buildCommand 86var result = buildCommand 109var result = buildCommand 138var result = buildCommand 169var result = buildCommand
GivenThatWeWantToTargetNotRecommendedFrameworks.cs (4)
35var result = buildCommand 61var result = buildCommand 85var result = buildCommand 111var result = buildCommand
GivenThatWeWantToUsePlatformAnalyzers.cs (8)
55var buildResult = buildCommand.Execute(); 101var buildResult = buildCommand.Execute(); 147var buildResult = buildCommand.Execute(); 193var buildResult = buildCommand.Execute(); 239var buildResult = buildCommand.Execute(); 324var buildResult = buildCommand.Execute(); 370var buildResult = buildCommand.Execute(); 416var buildResult = buildCommand.Execute();
GivenThatWeWantToVerifyNuGetReferenceCompat.cs (1)
127var referencerBuildResult = referencerBuildCommand.Execute();
GivenThatWeWantToVerifyProjectReferenceCompat.cs (1)
61var result = buildCommand.Execute();
Program.cs (1)
74var result = command.Execute();
ReferenceExeTests.cs (3)
157var referencedExeResult = new RunExeCommand(Log, referencedExePath) 415var result = new BuildCommand(Log, mtpProjectDirectory).Execute(); 464var result = new BuildCommand(Log, consoleAppDirectory).Execute();
Microsoft.NET.Clean.Tests (1)
Program.cs (1)
74var result = command.Execute();
Microsoft.NET.Pack.Tests (2)
GivenThatWeWantToPackAProjectTool.cs (1)
48var result = new PackCommand(Log, Path.Combine(asset.TestRoot, toolProject.Name)).Execute();
Program.cs (1)
74var result = command.Execute();
Microsoft.NET.Publish.Tests (38)
GivenThatAPublishedDepsJsonShouldContainVersionInformation.cs (1)
148var runAppResult = runAppCommand
GivenThatWeWantToExcludeAPackageFromPublish.cs (3)
38var publishResult = publishCommand.Execute(); 88var publishResult = publishCommand.Execute(); 139var publishResult = publishCommand.Execute();
GivenThatWeWantToFilterSatelliteAssemblies.cs (2)
33var publishResult = publishCommand.Execute(); 71var publishResult = publishCommand.Execute();
GivenThatWeWantToPublishAHelloWorldProject.cs (8)
38var publishResult = publishCommand.Execute(); 88var publishResult = publishCommand.Execute($"/p:RuntimeIdentifier={rid}", "/p:SelfContained=true", "/p:CopyLocalLockFileAssemblies=true"); 199var publishResult = publishCommand.Execute(); 316var publishResult = publishCommand.Execute(); 421var publishResult = publishCommand.Execute("/p:RuntimeIdentifier=notvalid"); 689CommandResult publishOutput = publishCommand 706var publishResult = publishCommand.Execute("/p:RuntimeIdentifier=notvalid", "/p:EnsureNETCoreAppRuntime=false"); 1175var result = runCommand.Execute();
GivenThatWeWantToPublishAnAotApp.cs (1)
632var result = publishCommand.Execute($"/p:RuntimeIdentifier={rid}", "/p:SelfContained=true");
GivenThatWeWantToPublishAnUnpublishableProject.cs (1)
20var publishResult = publishCommand.Execute();
GivenThatWeWantToPublishAProjectWithAllFeatures.cs (1)
134var publishCommand = GetPublishCommand(ToolsetInfo.CurrentTargetFramework).Execute("/p:NoBuild=true");
GivenThatWeWantToPublishAProjectWithDependencies.cs (3)
210var publishResult = publishCommand.Execute(publishArgs); 251var libPublishResult = libPublishCommand.Execute("/t:Publish", "/p:GenerateDocumentationFile=true"); 267var appPublishResult = appPublishCommand.Execute("/p:" + property);
GivenThatWeWantToPublishASingleFileApp.cs (2)
152var publishResults = GetPublishCommand(projectChanges: projectChanges).Execute(); 703var result = publishCommand.Execute(RuntimeIdentifier);
GivenThatWeWantToPublishTrimmedWindowsFormsAndWPFApps.cs (2)
177var result = runAppCommand.ToCommand() 249var result = runAppCommand.ToCommand()
GivenThatWeWantToPublishWithGeneratePackageOnBuildAndPackAsTool.cs (2)
37CommandResult result = publishCommand.Execute(); 63CommandResult result = buildCommand.Execute();
GivenThatWeWantToRunILLink.cs (8)
184var result = publishCommand.Execute($"/p:RuntimeIdentifier={rid}"); 616var result = publishCommand.Execute($"/p:RuntimeIdentifier={rid}", "/v:m"); 705var result = publishCommand.Execute($"/p:RuntimeIdentifier={rid}", "/v:m"); 891var result = publishCommand.Execute($"/p:RuntimeIdentifier={rid}", "/p:PublishTrimmed=true", "/p:TrimMode=copyused", "/p:TrimmerSingleWarn=false", "/p:EnableTrimAnalyzer=false", 989var result = publishCommand.Execute($"/p:RuntimeIdentifier={rid}", "/p:PublishTrimmed=true", 1009var result = publishCommand.Execute($"/p:RuntimeIdentifier={rid}", "/p:PublishTrimmed=true", "/p:TrimmerSingleWarn=false"); 1026var result = publishCommand.Execute($"/p:RuntimeIdentifier={rid}", "/p:PublishTrimmed=true", "/p:TrimmerSingleWarn=false", 2316public static void ValidateWarningsOnHelloWorldApp(PublishCommand publishCommand, CommandResult result, List<string> expectedWarnings, string targetFramework, string rid, bool useRegex = false)
GivenThatWeWantToStoreAProjectWithDependencies.cs (1)
317var composeStore = new ComposeStoreCommand(Log, targetManifestsAsset.TestRoot, "PrunePackages.xml")
Program.cs (1)
74var result = command.Execute();
PublishWebApp.cs (1)
56var result = runAppCommand.ToCommand()
PublishWpfApp.cs (1)
64var result = runAppCommand.ToCommand()
Microsoft.NET.Rebuild.Tests (1)
Program.cs (1)
74var result = command.Execute();
Microsoft.NET.Restore.Tests (4)
GivenThatWeWantToRestoreDotNetCliToolReference.cs (1)
60var restoreResult = restoreCommand
GivenThatWeWantToRestoreProjectsUsingNuGetConfigProperties.cs (1)
89var executeResult = restoreCommand.Execute($"/p:_NugetFallbackFolder={TestContext.Current.NuGetFallbackFolder}", "/p:DisableImplicit1xNuGetFallbackFolder=true");
GivenThatWeWantToUseFrameworkRoslyn.cs (1)
105var result = restoreCommand.Execute();
Program.cs (1)
74var result = command.Execute();
Microsoft.NET.Sdk.BlazorWebAssembly.AoT.Tests (1)
Program.cs (1)
74var result = command.Execute();
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (16)
BlazorWasmStaticWebAssetsIntegrationTest.cs (7)
32var buildResult = ExecuteCommand(build); 73var publishResult = ExecuteCommand(publish); 109var buildResult = ExecuteCommand(build); 153var publishResult = ExecuteCommand(publish); 193var publishResult = ExecuteCommand(publish, "/p:GenerateDocumentationFile=true"); 237var buildResult = ExecuteCommand(build); 292var publishResult = ExecuteCommand(publish);
Program.cs (1)
74var result = command.Execute();
WasmJsModulesIntegrationTests.cs (6)
31var buildResult = ExecuteCommand(build); 76var buildResult = ExecuteCommand(build); 120var publishResult = ExecuteCommand(publish); 184var publishResult = ExecuteCommand(publish); 240var publishResult = ExecuteCommand(publish); 311var publishResult = ExecuteCommand(publish);
WasmPublishIntegrationTest.cs (2)
1246var result = ExecuteCommand(publishCommand, "--no-self-contained"); 1271var result = ExecuteCommand(publishCommand, "--self-contained");
Microsoft.NET.Sdk.Publish.Tasks.Tests (1)
Program.cs (1)
74var result = command.Execute();
Microsoft.NET.Sdk.Razor.Tests (8)
BuildIncrementalismTest.cs (2)
34var result = build.Execute(); 68var result = build.Execute();
BuildWithComponentsIntegrationTest.cs (1)
86var result = build.Execute($"/p:TargetFramework=net10.0");
DesignTimeBuildIntegrationTest.cs (2)
43var result = command.Execute(); 74var result = command.Execute();
MvcBuildIntegrationTest50.cs (1)
34var result = build.Execute();
PackIntegrationTest.cs (1)
23var result = pack.Execute("/p:NoBuild=true");
Program.cs (1)
74var result = command.Execute();
Microsoft.NET.Sdk.Razor.Tool.Tests (1)
Program.cs (1)
74var result = command.Execute();
Microsoft.NET.Sdk.StaticWebAssets.Tests (45)
JsModulesIntegrationTest.cs (1)
101var publishResult = ExecuteCommand(publish);
Program.cs (1)
74var result = command.Execute();
ScopedCssIntegrationTests.cs (1)
258var buildResult = ExecuteCommand(build);
StaticWebAssetsIntegrationTest.cs (1)
904var publishResult = ExecuteCommand(publish, "/p:NoBuild=true", "/p:ErrorOnDuplicatePublishOutputFiles=false");
StaticWebAssetsPackIntegrationTest.cs (41)
45var result = ExecuteCommand(pack); 74var result = ExecuteCommand(pack); 108var result = ExecuteCommand(pack); 135var result = ExecuteCommand(pack); 140var result2 = ExecuteCommand(pack2); 171var result = ExecuteCommand(pack); 213var result = ExecuteCommand(pack); 253var buildResult = build.Execute(); 256var result = pack.Execute("/p:NoBuild=true"); 296var buildResult = build.Execute(); 299var result = pack.Execute("/p:NoBuild=true"); 337var result = build.Execute("/p:GeneratePackageOnBuild=true"); 377var result = build.Execute("/p:GeneratePackageOnBuild=true"); 437var result = ExecuteCommand(pack); 506var result = ExecuteCommand(pack); 574var buildResult = build.Execute(); 579var result = pack.Execute("/p:NoBuild=true"); 648var buildResult = build.Execute(); 653var result = pack.Execute("/p:NoBuild=true"); 721var result = build.Execute("/p:GeneratePackageOnBuild=true"); 790var result = build.Execute("/p:GeneratePackageOnBuild=true"); 856var result = ExecuteCommand(pack); 923var result = ExecuteCommand(pack); 989var buildResult = build.Execute(); 994var result = pack.Execute("/p:NoBuild=true"); 1061var buildResult = build.Execute(); 1066var result = pack.Execute("/p:NoBuild=true"); 1132var result = build.Execute("/p:GeneratePackageOnBuild=true"); 1199var result = build.Execute("/p:GeneratePackageOnBuild=true"); 1271var result = ExecuteCommand(pack); 1348var result2 = pack2.Execute(); 1421var result = ExecuteCommand(pack); 1463var result = ExecuteCommand(pack); 1489var result = ExecuteCommand(pack); 1514var result = ExecuteCommand(pack); 1549var result = pack.Execute("/p:NoBuild=true"); 1579var result = pack.Execute("/p:NoBuild=true"); 1605var result = ExecuteCommand(pack); 1631var result = ExecuteCommand(pack); 1678var result = buildCommand.Execute("/p:GeneratePackageOnBuild=true"); 1709var result = buildCommand.Execute("/p:GeneratePackageOnBuild=true");
Microsoft.NET.Sdk.Web.Tests (1)
Program.cs (1)
74var result = command.Execute();
Microsoft.NET.TestFramework (23)
AspNetSdkTest.cs (2)
134protected virtual CommandResult ExecuteCommand(TestCommand command, params string[] arguments) 152protected virtual CommandResult ExecuteCommandWithoutRestore(MSBuildCommand command, params string[] arguments)
Assertions\CommandResultAssertions.cs (2)
12private CommandResult _commandResult; 14public CommandResultAssertions(CommandResult commandResult)
Assertions\CommandResultExtensions.cs (1)
10public static CommandResultAssertions Should(this CommandResult commandResult) => new CommandResultAssertions(commandResult);
Commands\AddReferenceCommand.cs (1)
16public override CommandResult Execute(IEnumerable<string> args)
Commands\ListPackageCommand.cs (1)
16public override CommandResult Execute(IEnumerable<string> args)
Commands\ListReferenceCommand.cs (1)
16public override CommandResult Execute(IEnumerable<string> args)
Commands\MSBuildCommand.cs (4)
131public override CommandResult Execute(IEnumerable<string> args) 139var command = base.Execute(args); 152public CommandResult ExecuteWithoutRestore(IEnumerable<string> args) 157public CommandResult ExecuteWithoutRestore(params string[] args)
Commands\PackageListCommand.cs (1)
16public override CommandResult Execute(IEnumerable<string> args)
Commands\RemoveReferenceCommand.cs (1)
16public override CommandResult Execute(IEnumerable<string> args)
Commands\TestCommand.cs (5)
123public CommandResult Execute(params string[] args) 135private static bool SuccessOrNotTransientRestoreError(CommandResult result) 145public virtual CommandResult Execute(IEnumerable<string> args) 176var result = ((Command)command).Execute(ProcessStartedHandler); 191public static void LogCommandResult(ITestOutputHelper log, CommandResult result)
TestAsset.cs (1)
283var commandResult = GetRestoreCommand(log, relativePath)
TestAssetsManager.cs (1)
102var slnCreationResult = new DotnetNewCommand(Log, "sln", "--format", "sln")
ToolsetInfo.cs (2)
99var result = command.Execute(); 122var result = command.Execute();
Microsoft.NET.ToolPack.Tests (8)
GivenThatWeWantToPackAToolProject.cs (3)
43var result = packCommand.Execute($"/bl:{id}-{{}}.binlog"); 95var result = packCommand.Execute(); 322var result = packCommand.Execute();
GivenThatWeWantToPackAToolProjectWithGeneratePackageOnBuild.cs (2)
44CommandResult result = buildCommand.Execute(); 99CommandResult result = packCommand.Execute("/restore");
GivenThatWeWantToPackAToolSelfContainedProject.cs (1)
42CommandResult result = packCommand.Execute("--property:SelfContained=true");
GivenThatWeWantToPackAToolTargetingNonSupportedTFM.cs (1)
44CommandResult result = packCommand.Execute();
Program.cs (1)
74var result = command.Execute();
Microsoft.TemplateEngine.Cli.UnitTests (1)
Program.cs (1)
74var result = command.Execute();
Microsoft.WebTools.AspireService.Tests (1)
Program.cs (1)
74var result = command.Execute();
msbuild.Integration.Tests (6)
GivenDotnetInvokesMSBuild.cs (5)
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)
Program.cs (1)
74var result = command.Execute();
System.CommandLine.StaticCompletions.Tests (1)
Program.cs (1)
74var result = command.Execute();
trustedroots.Tests (1)
Program.cs (1)
74var result = command.Execute();