Base:
method
Execute
Microsoft.DotNet.Cli.CommandBase.Execute()
30 references to Execute
dotnet (2)
Commands\Workload\Install\WorkloadInstallCommandParser.cs (1)
51
command.SetAction((parseResult) => new WorkloadInstallCommand(parseResult).
Execute
());
Commands\Workload\Restore\WorkloadRestoreCommand.cs (1)
59
}.
Execute
();
dotnet.Tests (28)
CommandTests\Workload\Clean\GivenDotnetWorkloadClean.cs (1)
121
installCommand.
Execute
();
CommandTests\Workload\Install\GivenDotnetWorkloadInstall.cs (20)
72
installManager.
Execute
()
93
var exceptionThrown = Assert.Throws<GracefulException>(() => installManager.
Execute
());
118
var exceptionThrown = Assert.Throws<GracefulException>(() => installManager.
Execute
());
134
installManager.
Execute
()
155
installManager.
Execute
()
224
installManager.
Execute
()
256
installManager.
Execute
();
275
installManager.
Execute
();
299
installManager.
Execute
();
319
installManager.
Execute
();
342
var exceptionThrown = Assert.Throws<GracefulException>(() => command.
Execute
());
374
installCommand.
Execute
();
380
var exceptionThrown = Assert.Throws<GracefulException>(() => installCommand.
Execute
());
430
installCommand.
Execute
();
435
installCommand.
Execute
();
521
var ex = Assert.Throws<GracefulException>(() => installCommand.
Execute
());
547
installCommand.
Execute
().Should().Be(0);
569
installCommand.
Execute
()
577
installCommand.
Execute
()
636
installManager.
Execute
().Should().Be(0);
CommandTests\Workload\Install\WorkloadInstallAspireDeprecationTests.cs (3)
46
var exitCode = command.
Execute
();
81
var exitCode = command.
Execute
();
117
var exitCode = command.
Execute
();
CommandTests\Workload\Repair\GivenDotnetWorkloadRepair.cs (2)
84
installCommand.
Execute
();
134
installCommand.
Execute
();
CommandTests\Workload\Uninstall\GivenDotnetWorkloadUninstall.cs (1)
213
installCommand.
Execute
();
CommandTests\Workload\Update\GivenDotnetWorkloadUpdate.cs (1)
136
installCommand.
Execute
();