@@ -146,13 +146,13 @@ internal async Task DownloadPackage_HasVulnerabilities()
146146
147147 var exception = await Assert . ThrowsAsync < VulnerablePackageException > ( ( ) => packageManager . DownloadPackageAsync (
148148 installPath ,
149- "log4net " ,
150- "2 .0.3 " ,
149+ "System.Text.Json " ,
150+ "8 .0.4 " ,
151151 // add the source for getting vulnerability info
152152 additionalSources : _additionalSources ) ) ;
153153
154- exception . PackageIdentifier . Should ( ) . Be ( "log4net " ) ;
155- exception . PackageVersion . Should ( ) . Be ( "2 .0.3 " ) ;
154+ exception . PackageIdentifier . Should ( ) . Be ( "System.Text.Json " ) ;
155+ exception . PackageVersion . Should ( ) . Be ( "8 .0.4 " ) ;
156156 exception . Vulnerabilities . Should ( ) . NotBeNullOrEmpty ( ) ;
157157 }
158158
@@ -167,15 +167,15 @@ internal async Task DownloadPackage_HasVulnerabilitiesForce()
167167
168168 var result = await packageManager . DownloadPackageAsync (
169169 installPath ,
170- "log4net " ,
171- "2 .0.3 " ,
170+ "System.Text.Json " ,
171+ "8 .0.4 " ,
172172 // add the source for getting vulnerability info
173173 additionalSources : _additionalSources ,
174174 force : true ) ;
175175
176- result . PackageIdentifier . Should ( ) . Be ( "log4net " ) ;
177- result . Author . Should ( ) . Be ( "Apache Software Foundation " ) ;
178- result . PackageVersion . Should ( ) . Be ( "2 .0.3 " ) ;
176+ result . PackageIdentifier . Should ( ) . Be ( "System.Text.Json " ) ;
177+ result . Author . Should ( ) . Be ( "Microsoft " ) ;
178+ result . PackageVersion . Should ( ) . Be ( "8 .0.4 " ) ;
179179 Assert . True ( File . Exists ( result . FullPath ) ) ;
180180 result . PackageVulnerabilities . Should ( ) . NotBeNullOrEmpty ( ) ;
181181 result . NuGetSource . Should ( ) . Be ( _additionalSources [ 0 ] ) ;
0 commit comments