Base:
method
Execute
Microsoft.DotNet.Cli.CommandBase.Execute()
54 references to Execute
dotnet (2)
Commands\Tool\Install\ToolInstallCommand.cs (1)
35
return (_toolInstallGlobalOrToolPathCommand ?? new ToolInstallGlobalOrToolPathCommand(_parseResult)).
Execute
();
Commands\Tool\Update\ToolUpdateGlobalOrToolPathCommand.cs (1)
57
_toolInstallGlobalOrToolPathCommand.
Execute
();
dotnet.Tests (52)
CommandTests\Tool\Install\ToolInstallGlobalOrToolPathCommandTests.cs (32)
108
toolInstallGlobalOrToolPathCommand.
Execute
().Should().Be(0);
146
toolInstallGlobalOrToolPathCommand.
Execute
().Should().Be(0);
193
var ex = Assert.Throws<NuGetPackageNotFoundException>(() => toolInstallGlobalOrToolPathCommand.
Execute
());
211
toolInstallGlobalOrToolPathCommand.
Execute
().Should().Be(0);
233
toolInstallGlobalOrToolPathCommand.
Execute
().Should().Be(0);
257
toolInstallGlobalOrToolPathCommand.
Execute
().Should().Be(0);
278
Action a = () => toolInstallGlobalOrToolPathCommand.
Execute
();
299
Action a = () => toolInstallGlobalOrToolPathCommand.
Execute
();
323
Action a = () => toolInstallGlobalOrToolPathCommand.
Execute
();
345
toolInstallGlobalOrToolPathCommand.
Execute
().Should().Be(0);
369
toolInstallGlobalOrToolPathCommand.
Execute
().Should().Be(0);
395
Action action = () => toolInstallGlobalOrToolPathCommand.
Execute
();
417
toolInstallGlobalOrToolPathCommand.
Execute
().Should().Be(0);
442
toolInstallGlobalOrToolPathCommand.
Execute
().Should().Be(0);
454
toolInstallGlobalOrToolPathCommand.
Execute
().Should().Be(0);
474
toolInstallGlobalOrToolPathCommand.
Execute
().Should().Be(0);
496
toolInstallGlobalOrToolPathCommand2.
Execute
().Should().Be(0);
523
toolInstallGlobalOrToolPathCommand.
Execute
().Should().Be(0);
545
toolInstallGlobalOrToolPathCommand2.
Execute
().Should().Be(0);
572
toolInstallGlobalOrToolPathCommand.
Execute
().Should().Be(0);
594
Action a = () => toolInstallGlobalOrToolPathCommand2.
Execute
();
611
toolInstallGlobalOrToolPathCommand.
Execute
().Should().Be(0);
647
toolInstallCommand.
Execute
().Should().Be(0);
690
toolInstallGlobalOrToolPathCommand.
Execute
().Should().Be(0);
717
Action a = () => toolInstallGlobalOrToolPathCommand.
Execute
();
794
Action a = () => toolInstallGlobalOrToolPathCommand.
Execute
();
815
toolInstallGlobalOrToolPathCommand.
Execute
().Should().Be(0);
840
toolInstallGlobalOrToolPathCommand.
Execute
().Should().Be(0);
855
toolInstallGlobalOrToolPathCommand.
Execute
().Should().Be(0);
889
installCommand.
Execute
().Should().Be(0);
907
var exceptionThrown = Assert.Throws<AggregateException>(() => toolInstallGlobalOrToolPathCommand.
Execute
());
925
toolInstallGlobalOrToolPathCommand.
Execute
().Should().Be(0);
CommandTests\Tool\Uninstall\ToolUninstallGlobalOrToolPathCommandTests.cs (3)
60
CreateInstallCommand($"-g {PackageId} --verbosity minimal").
Execute
().Should().Be(0);
102
CreateInstallCommand($"-g {PackageId} --verbosity minimal").
Execute
().Should().Be(0);
172
CreateInstallCommand($"-g {PackageId} --verbosity minimal").
Execute
().Should().Be(0);
CommandTests\Tool\Update\ToolUpdateGlobalOrToolPathCommandTests.cs (17)
153
CreateInstallCommand($"-g {_packageId} --version {LowerPackageVersion}").
Execute
();
166
CreateInstallCommand($"-g {_packageId} --version {LowerPackageVersion}").
Execute
();
167
CreateInstallCommand($"-g {_packageId2} --version {LowerPackageVersion}", _packageId2.ToString()).
Execute
();
180
CreateInstallCommand($"-g {_packageId} --version {LowerPackageVersion}").
Execute
();
205
CreateInstallCommand($"-g {_packageId} --version {LowerPackageVersion}").
Execute
();
220
CreateInstallCommand($"-g {_packageId} --version {LowerPackageVersion}").
Execute
();
236
installCommand.
Execute
();
250
CreateInstallCommand($"-g {_packageId} --version {HigherPackageVersion}").
Execute
();
265
CreateInstallCommand($"-g {_packageId} --version {HigherPackageVersion}").
Execute
();
280
CreateInstallCommand($"-g {_packageId} --version {LowerPackageVersion}").
Execute
();
295
CreateInstallCommand($"-g {_packageId} --version {LowerPackageVersion}").
Execute
();
310
CreateInstallCommand($"-g {_packageId} --version {HigherPackageVersion}").
Execute
();
330
CreateInstallCommand($"-g {_packageId} --version {HigherPackageVersion}").
Execute
();
345
CreateInstallCommand($"-g {_packageId} --version {HigherPreviewPackageVersion}").
Execute
();
360
CreateInstallCommand($"-g {_packageId} --version {LowerPackageVersion}").
Execute
();
387
CreateInstallCommand($"-g {_packageId} --version {LowerPackageVersion}").
Execute
();
424
CreateInstallCommand($"-g {_packageId} --version {LowerPackageVersion}").
Execute
();