@@ -238,35 +238,33 @@ public async Task WithSourceMappingEnabled_InstallPackageFromPMUIAndNoSourcesFou
238238 [ TestCategory ( "Gate" ) ]
239239 public async Task InstallAndUpdatePackageFromUI_NetCoreProject_Succeeds ( )
240240 {
241- using ( var testContext = new ApexTestContext ( VisualStudio , ProjectTemplate . NetCoreConsoleApp , Logger ) )
242- {
243- // Arrange
244- var packageName = "NetCoreUpdateTestPackage" ;
245- var packageVersion1 = "1.0.0" ;
246- var packageVersion2 = "2.0.0" ;
247-
248- await CommonUtility . CreatePackageInSourceAsync ( testContext . PackageSource , packageName , packageVersion1 ) ;
249- await CommonUtility . CreatePackageInSourceAsync ( testContext . PackageSource , packageName , packageVersion2 ) ;
250-
251- VisualStudio . AssertNoErrors ( ) ;
252-
253- // Act
254- CommonUtility . OpenNuGetPackageManagerWithDte ( VisualStudio , Logger ) ;
255- var nugetTestService = GetNuGetTestService ( ) ;
256- var uiwindow = nugetTestService . GetUIWindowfromProject ( testContext . Project ) ;
257- uiwindow . InstallPackageFromUI ( packageName , packageVersion1 ) ;
258- testContext . SolutionService . Build ( ) ;
259- testContext . NuGetApexTestService . WaitForAutoRestore ( ) ;
260- CommonUtility . AssertPackageReferenceExists ( testContext . Project , packageName , packageVersion1 , Logger ) ;
261-
262- uiwindow . UpdatePackageFromUI ( packageName , packageVersion2 ) ;
263- testContext . SolutionService . Build ( ) ;
264- testContext . NuGetApexTestService . WaitForAutoRestore ( ) ;
265-
266- // Assert
267- VisualStudio . AssertNuGetOutputDoesNotHaveErrors ( ) ;
268- CommonUtility . AssertPackageReferenceExists ( testContext . Project , packageName , packageVersion2 , Logger ) ;
269- }
241+ // Arrange
242+ using var testContext = new ApexTestContext ( VisualStudio , ProjectTemplate . NetCoreConsoleApp , Logger ) ;
243+ var packageName = "NetCoreUpdateTestPackage" ;
244+ var packageVersion1 = "1.0.0" ;
245+ var packageVersion2 = "2.0.0" ;
246+
247+ await CommonUtility . CreatePackageInSourceAsync ( testContext . PackageSource , packageName , packageVersion1 ) ;
248+ await CommonUtility . CreatePackageInSourceAsync ( testContext . PackageSource , packageName , packageVersion2 ) ;
249+
250+ VisualStudio . AssertNoErrors ( ) ;
251+
252+ // Act
253+ CommonUtility . OpenNuGetPackageManagerWithDte ( VisualStudio , Logger ) ;
254+ var nugetTestService = GetNuGetTestService ( ) ;
255+ var uiwindow = nugetTestService . GetUIWindowfromProject ( testContext . Project ) ;
256+ uiwindow . InstallPackageFromUI ( packageName , packageVersion1 ) ;
257+ testContext . SolutionService . Build ( ) ;
258+ testContext . NuGetApexTestService . WaitForAutoRestore ( ) ;
259+ CommonUtility . AssertPackageReferenceExists ( testContext . Project , packageName , packageVersion1 , Logger ) ;
260+
261+ uiwindow . UpdatePackageFromUI ( packageName , packageVersion2 ) ;
262+ testContext . SolutionService . Build ( ) ;
263+ testContext . NuGetApexTestService . WaitForAutoRestore ( ) ;
264+
265+ // Assert
266+ VisualStudio . AssertNuGetOutputDoesNotHaveErrors ( ) ;
267+ CommonUtility . AssertPackageReferenceExists ( testContext . Project , packageName , packageVersion2 , Logger ) ;
270268 }
271269
272270 // There is a bug with VS or Apex where NetCoreConsoleApp and NetCoreClassLib create netcore 2.1 projects that are not supported by the sdk
0 commit comments