File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
test/dotnet.Tests/CommandTests Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -225,15 +225,16 @@ public void GivenAnExistedLowerversionInstallationWhenUpdateAllItCanPrintSuccess
225225 [ Fact ]
226226 public void GivenAnExistedPreviewVersionInstallationWhenUpdateToHigherVersionItSucceeds ( )
227227 {
228- CreateInstallCommand ( $ "-g { _packageId } --version { HigherPreviewPackageVersion } --verbosity minimal") ;
228+ var installCommand = CreateInstallCommand ( $ "-g { _packageId } --version { HigherPreviewPackageVersion } --verbosity minimal") ;
229+ installCommand . Execute ( ) ;
229230 _reporter . Lines . Clear ( ) ;
230231
231232 var command = CreateUpdateCommand ( $ "-g { _packageId } --version { HigherPackageVersion } --verbosity minimal") ;
232233 command . Execute ( ) . Should ( ) . Be ( 0 ) ;
233234
234- _reporter . Lines . First ( ) . Should ( ) . NotContain ( string . Format (
235- Microsoft . DotNet . Tools . Tool . Install . LocalizableStrings . ToolAlreadyInstalled ,
236- _packageId , HigherPackageVersion ) ) ;
235+ _reporter . Lines . First ( ) . Should ( ) . Contain ( string . Format (
236+ LocalizableStrings . UpdateSucceeded ,
237+ _packageId , HigherPreviewPackageVersion , HigherPackageVersion ) ) ;
237238 }
238239
239240 [ Fact ]
You can’t perform that action at this time.
0 commit comments