Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edvilme committed Dec 11, 2024
1 parent ec32e7d commit 7779d50
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,16 @@ public void GivenAnExistedLowerversionInstallationWhenUpdateAllItCanPrintSuccess
[Fact]
public void GivenAnExistedPreviewVersionInstallationWhenUpdateToHigherVersionItSucceeds()
{
CreateInstallCommand($"-g {_packageId} --version {HigherPreviewPackageVersion} --verbosity minimal");
var installCommand = CreateInstallCommand($"-g {_packageId} --version {HigherPreviewPackageVersion} --verbosity minimal");
installCommand.Execute();
_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));
_reporter.Lines.First().Should().Contain(string.Format(
LocalizableStrings.UpdateSucceeded,
_packageId, HigherPreviewPackageVersion, HigherPackageVersion));
}

[Fact]
Expand Down

0 comments on commit 7779d50

Please sign in to comment.