dotnet-installer/test/Microsoft.DotNet.ToolPackage.Tests
William Lee 5fa558a2ed
Atomic install tool (#8518)
* Make dotnet install tool atomic

Apply TransactionScope to tool install. It can handle the correct timing
of roll back and commit.

Convert existing ToolPackageObtainer and ShellShimMaker by passing logic
via lambda to an object that has IEnlistmentNotification interface. It
turns out the very clean.

Use .stage as staging place to verify of package content, and shim. It
should roll back when something is wrong. When there is ctrl-c, there
will be garbage in .stage folder but not the root of the package folder.
2018-02-06 13:38:06 -08:00
..
SampleGlobalTool [tools] Integrate NuGet (#8414) 2018-01-19 17:15:34 -08:00
DotnetToolSettingsGolden.xml Add install tool command (#8132) 2017-12-04 14:13:24 -08:00
DotnetToolSettingsMalformed.xml Add install tool command (#8132) 2017-12-04 14:13:24 -08:00
DotnetToolSettingsMissing.xml Add install tool command (#8132) 2017-12-04 14:13:24 -08:00
LockFileMatcherTests.cs [tools] Integrate NuGet (#8414) 2018-01-19 17:15:34 -08:00
Microsoft.DotNet.ToolPackage.Tests.csproj Use rich mock to test InstallCommand (#8402) 2018-01-24 10:16:27 -08:00
ToolConfigurationDeserializerTests.cs Add verbosity option to install tool command. 2018-01-31 15:19:34 -08:00
ToolPackageObtainerTests.cs Atomic install tool (#8518) 2018-02-06 13:38:06 -08:00