@@ -55,7 +55,7 @@ public async Task RunAsync_ExplicitVersionFromLocalFolderSource_SucceedsAsync()
5555 var installDir = Path . Combine ( outputDir , id . ToLowerInvariant ( ) , version ) ;
5656 Directory . Exists ( installDir ) . Should ( ) . BeTrue ( ) ;
5757 Directory . EnumerateFiles ( installDir , "*.nupkg" ) . Any ( ) . Should ( ) . BeTrue ( ) ;
58- File . Exists ( Path . Combine ( installDir , $ "{ id } .{ version } .nupkg") ) . Should ( ) . BeTrue ( ) ;
58+ File . Exists ( Path . Combine ( installDir , $ "{ id . ToLowerInvariant ( ) } .{ version } .nupkg") ) . Should ( ) . BeTrue ( ) ;
5959 }
6060
6161 [ Fact ]
@@ -92,7 +92,7 @@ public async Task RunAsync_NoVersionWhenPrereleaseNotIncluded_PicksLatestStable(
9292 var notChosen = Path . Combine ( outputDir , id . ToLowerInvariant ( ) , "2.0.0-beta" ) ;
9393 Directory . Exists ( chosen ) . Should ( ) . BeTrue ( "latest stable (1.1.0) should be chosen" ) ;
9494 Directory . Exists ( notChosen ) . Should ( ) . BeFalse ( "prerelease (2.0.0-beta) should not be chosen" ) ;
95- File . Exists ( Path . Combine ( chosen , $ "{ id } .1.1.0.nupkg") ) . Should ( ) . BeTrue ( ) ;
95+ File . Exists ( Path . Combine ( chosen , $ "{ id . ToLowerInvariant ( ) } .1.1.0.nupkg") ) . Should ( ) . BeTrue ( ) ;
9696 }
9797
9898 [ Fact ]
@@ -129,7 +129,7 @@ public async Task RunAsync_NoVersionWithPrereleaseTrue_PicksHighestIncludingPrer
129129
130130 var chosen = Path . Combine ( outputDir , id . ToLowerInvariant ( ) , "2.0.0-beta.2" ) ;
131131 Directory . Exists ( chosen ) . Should ( ) . BeTrue ( "IncludePrerelease=true should allow picking 2.0.0-beta.2" ) ;
132- File . Exists ( Path . Combine ( chosen , $ "{ id } .2.0.0-beta.2.nupkg") ) . Should ( ) . BeTrue ( ) ;
132+ File . Exists ( Path . Combine ( chosen , $ "{ id . ToLowerInvariant ( ) } .2.0.0-beta.2.nupkg") ) . Should ( ) . BeTrue ( ) ;
133133 }
134134
135135 [ Fact ]
@@ -165,7 +165,7 @@ public async Task RunAsync_NoVersion_PicksHighestAcrossMultipleSources()
165165
166166 var chosen = Path . Combine ( outputDir , id . ToLowerInvariant ( ) , "1.2.0" ) ;
167167 Directory . Exists ( chosen ) . Should ( ) . BeTrue ( "should choose the highest version found across all sources" ) ;
168- File . Exists ( Path . Combine ( chosen , $ "{ id } .1.2.0.nupkg") ) . Should ( ) . BeTrue ( ) ;
168+ File . Exists ( Path . Combine ( chosen , $ "{ id . ToLowerInvariant ( ) } .1.2.0.nupkg") ) . Should ( ) . BeTrue ( ) ;
169169 }
170170
171171 [ Fact ]
@@ -216,7 +216,7 @@ public async Task RunAsync_ExplicitVersionAlreadyInstalled_ShortCircuitsAndSucce
216216
217217 var installDir = Path . Combine ( outputDir , id . ToLowerInvariant ( ) , v ) ;
218218 Directory . Exists ( installDir ) . Should ( ) . BeTrue ( ) ;
219- File . Exists ( Path . Combine ( installDir , $ "{ id } .{ v } .nupkg") ) . Should ( ) . BeTrue ( ) ;
219+ File . Exists ( Path . Combine ( installDir , $ "{ id . ToLowerInvariant ( ) } .{ v } .nupkg") ) . Should ( ) . BeTrue ( ) ;
220220 logger2 . Verify ( l => l . LogMinimal ( It . Is < string > ( s =>
221221 s . Contains ( "Skipping" , System . StringComparison . OrdinalIgnoreCase ) ) ) , Times . AtLeastOnce ) ;
222222 }
@@ -289,6 +289,6 @@ public async Task RunAsync_PackageDoesNotExist_ReturnsError()
289289 result . Should ( ) . Be ( ExitCodes . Error ) ;
290290 logger . Verify ( l => l . LogError ( It . IsAny < string > ( ) ) , Times . AtLeastOnce ) ;
291291
292- File . Exists ( Path . Combine ( outputDir , $ "{ id } .{ v } .nupkg") ) . Should ( ) . BeFalse ( "Package does not exist in sources" ) ;
292+ File . Exists ( Path . Combine ( outputDir , $ "{ id . ToLowerInvariant ( ) } .{ v } .nupkg") ) . Should ( ) . BeFalse ( "Package does not exist in sources" ) ;
293293 }
294294}
0 commit comments