File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
test/dotnet.Tests/CommandTests/Tool/Install Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -333,6 +333,15 @@ public void WhenRunWithExistingManifestInConfigDirectoryItShouldAddToExistingMan
333
333
var manifestPackages = _toolManifestFinder . Find ( ) ;
334
334
manifestPackages . Should ( ) . HaveCount ( 1 ) ;
335
335
manifestPackages . First ( ) . PackageId . Should ( ) . Be ( _packageIdA ) ;
336
+
337
+ // Verify that the manifest under the .config folder has been updated
338
+ _fileSystem . File . Exists ( configManifestPath ) . Should ( ) . BeTrue ( "the .config manifest file should exist" ) ;
339
+ var configManifestContent = _fileSystem . File . ReadAllText ( configManifestPath ) ;
340
+ configManifestContent . Should ( ) . Contain ( _packageIdA . ToString ( ) , "the .config manifest should contain the installed tool" ) ;
341
+ configManifestContent . Should ( ) . NotBe ( _jsonContent , "the .config manifest should have been updated with the new tool" ) ;
342
+
343
+ // Verify that no manifest exists in the root folder after the install command is run
344
+ _fileSystem . File . Exists ( _manifestFilePath ) . Should ( ) . BeFalse ( "no manifest should exist in the root folder" ) ;
336
345
}
337
346
338
347
private ToolInstallLocalCommand GetDefaultTestToolInstallLocalCommand ( )
You can’t perform that action at this time.
0 commit comments