Skip to content

Commit

Permalink
[TEST] tool-update: Update same version different release tag
Browse files Browse the repository at this point in the history
  • Loading branch information
edvilme committed Dec 11, 2024
1 parent 04d14bb commit ec32e7d
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,20 @@ public void GivenAnExistedLowerversionInstallationWhenUpdateAllItCanPrintSuccess
_packageId, LowerPackageVersion, HigherPackageVersion));
}

[Fact]
public void GivenAnExistedPreviewVersionInstallationWhenUpdateToHigherVersionItSucceeds()
{
CreateInstallCommand($"-g {_packageId} --version {HigherPreviewPackageVersion} --verbosity minimal");
_reporter.Lines.Clear();

var command = CreateUpdateCommand($"-g {_packageId} --version {HigherPackageVersion} --verbosity minimal");
command.Execute().Should().Be(0);

_reporter.Lines.First().Should().NotContain(string.Format(
Microsoft.DotNet.Tools.Tool.Install.LocalizableStrings.ToolAlreadyInstalled,
_packageId, HigherPackageVersion));
}

[Fact]
public void GivenAnExistedHigherversionInstallationWhenUpdateToLowerVersionItErrors()
{
Expand Down

0 comments on commit ec32e7d

Please sign in to comment.