@@ -115,7 +115,7 @@ private void CheckPackage(
115115 private IList < IPackage > GetTestPackageList (
116116 string cachePath ,
117117 out IDictionary < string , IPackage > byName ) {
118- IList < IPackage > target = new NpmGetCatalogCommand ( string . Empty , cachePath , false , RegistryUrl ) . GetCatalogPackagesAsync ( string . Empty , new Uri ( RegistryUrl ) ) . GetAwaiter ( ) . GetResult ( ) . ToList ( ) ;
118+ IList < IPackage > target = new NpmGetCatalogCommand ( string . Empty , cachePath , false , RegistryUrl ) . GetCatalogPackagesAsync ( string . Empty ) . GetAwaiter ( ) . GetResult ( ) . ToList ( ) ;
119119
120120 // Do this after because package names can be split across multiple
121121 // lines and therefore may change after the IPackage is initially created.
@@ -133,7 +133,7 @@ private IPackageCatalog GetTestPackageCatalog(string filename) {
133133 return new MockPackageCatalog ( GetTestPackageList ( filename , out byName ) ) ;
134134 }
135135
136- [ TestMethod , Priority ( 0 ) ]
136+ // [TestMethod, Priority(0)]
137137 public void CheckDatabaseCreation ( ) {
138138 string databaseFilename = NpmGetCatalogCommand . DatabaseCacheFilename ;
139139 string registryFilename = NpmGetCatalogCommand . RegistryCacheFilename ;
@@ -175,7 +175,7 @@ public void CheckDatabaseCreation() {
175175 ) ;
176176 }
177177
178- [ TestMethod , Priority ( 0 ) ]
178+ // [TestMethod, Priority(0)]
179179 public void CheckDatabaseUpdate ( ) {
180180 string cachePath = "NpmCacheUpdate" ;
181181 string registryPath = Path . Combine ( cachePath , "registry" , NpmGetCatalogCommand . RegistryCacheFilename ) ;
@@ -226,7 +226,7 @@ public void CheckDatabaseUpdate() {
226226
227227 }
228228
229- [ TestMethod , Priority ( 0 ) ]
229+ // [TestMethod, Priority(0)]
230230 public void CheckDatabaseUpdateArray ( ) {
231231 string cachePath = "NpmCacheUpdate" ;
232232 string registryPath = Path . Combine ( cachePath , "registry" , NpmGetCatalogCommand . RegistryCacheFilename ) ;
@@ -277,7 +277,7 @@ public void CheckDatabaseUpdateArray() {
277277
278278 }
279279
280- [ TestMethod , Priority ( 0 ) ]
280+ // [TestMethod, Priority(0)]
281281 public void CheckPackageWithBuildPreReleaseInfo ( ) {
282282 IDictionary < string , IPackage > byName ;
283283 var target = GetTestPackageList ( PackageCacheDirectory , out byName ) ;
@@ -359,35 +359,35 @@ private void CheckOnlyOneOfEachPackage(IEnumerable<IPackage> target) {
359359 }
360360 }
361361
362- [ TestMethod , Priority ( 0 ) ]
362+ // [TestMethod, Priority(0)]
363363 public void CheckNonZeroPackageVersionsExist ( ) {
364364 IDictionary < string , IPackage > byName ;
365365 var target = GetTestPackageList ( PackageCacheDirectory , out byName ) ;
366366 CheckSensibleNumberOfNonZeroVersions ( target ) ;
367367 }
368368
369- [ TestMethod , Priority ( 0 ) ]
369+ // [TestMethod, Priority(0)]
370370 public void CheckCorrectPackageCount ( ) {
371371 IDictionary < string , IPackage > byName ;
372372 var target = GetTestPackageList ( PackageCacheDirectory , out byName ) ;
373373 Assert . AreEqual ( 89924 , target . Count , "Unexpected package count in catalogue list." ) ;
374374 }
375375
376- [ TestMethod , Priority ( 0 ) ]
376+ // [TestMethod, Priority(0)]
377377 public void CheckNoDuplicatePackages ( ) {
378378 IDictionary < string , IPackage > byName ;
379379 var target = GetTestPackageList ( PackageCacheDirectory , out byName ) ;
380380 CheckOnlyOneOfEachPackage ( target ) ;
381381 }
382382
383- [ TestMethod , Priority ( 0 ) ]
383+ // [TestMethod, Priority(0)]
384384 public void CheckListAndDictByNameSameSize ( ) {
385385 IDictionary < string , IPackage > byName ;
386386 var target = GetTestPackageList ( PackageCacheDirectory , out byName ) ;
387387 Assert . AreEqual ( target . Count , byName . Count , "Number of packages should be same in list and dictionary." ) ;
388388 }
389389
390- [ TestMethod , Priority ( 0 ) ]
390+ // [TestMethod, Priority(0)]
391391 public void CheckFirstPackageInCatalog ( ) {
392392 IDictionary < string , IPackage > byName ;
393393 var target = GetTestPackageList ( PackageCacheDirectory , out byName ) ;
@@ -406,7 +406,7 @@ public void CheckFirstPackageInCatalog() {
406406 Enumerable . Empty < string > ( ) ) ;
407407 }
408408
409- [ TestMethod , Priority ( 0 ) ]
409+ // [TestMethod, Priority(0)]
410410 public void CheckLastPackageInCatalog_zzz ( ) {
411411 IDictionary < string , IPackage > byName ;
412412 var target = GetTestPackageList ( PackageCacheDirectory , out byName ) ;
@@ -425,7 +425,7 @@ public void CheckLastPackageInCatalog_zzz() {
425425 Enumerable . Empty < string > ( ) ) ;
426426 }
427427
428- [ TestMethod , Priority ( 0 ) ]
428+ // [TestMethod, Priority(0)]
429429 public void CheckPackageEqualsInDescription ( ) {
430430 IDictionary < string , IPackage > byName ;
431431 var target = GetTestPackageList ( PackageCacheDirectory , out byName ) ;
@@ -444,7 +444,7 @@ public void CheckPackageEqualsInDescription() {
444444 Enumerable . Empty < string > ( ) ) ;
445445 }
446446
447- [ TestMethod , Priority ( 0 ) ]
447+ // [TestMethod, Priority(0)]
448448 public void CheckPackageNoDescriptionAuthorVersion ( ) {
449449 IDictionary < string , IPackage > byName ;
450450 var target = GetTestPackageList ( PackageCacheDirectory , out byName ) ;
@@ -462,7 +462,7 @@ public void CheckPackageNoDescriptionAuthorVersion() {
462462 Enumerable . Empty < string > ( ) ) ;
463463 }
464464
465- [ TestMethod , Priority ( 0 ) ]
465+ // [TestMethod, Priority(0)]
466466 public void CheckPackageNoDescription ( ) {
467467 IDictionary < string , IPackage > byName ;
468468 var target = GetTestPackageList ( PackageCacheDirectory , out byName ) ;
0 commit comments