@@ -23,7 +23,7 @@ public void BuildToolsService_WithTestCacheDirectory_UsesOverriddenDirectory()
2323 Assert . IsNull ( result ) ;
2424
2525 // Additional verification: Create a fake bin directory structure and verify it's found
26- var packagesDir = Path . Combine ( _testGlobalDirectory . FullName , "packages" ) ;
26+ var packagesDir = Path . Combine ( _testCacheDirectory . FullName , "packages" ) ;
2727 var buildToolsPackageDir = Path . Combine ( packagesDir , "Microsoft.Windows.SDK.BuildTools.10.0.26100.1" ) ;
2828 var binDir = Path . Combine ( buildToolsPackageDir , "bin" , "10.0.26100.0" , "x64" ) ;
2929 Directory . CreateDirectory ( binDir ) ;
@@ -40,7 +40,7 @@ public void BuildToolsService_WithTestCacheDirectory_UsesOverriddenDirectory()
4040 public void GetBuildToolPath_WithNonExistentTool_ReturnsNull ( )
4141 {
4242 // Arrange - Create package structure but without the requested tool
43- var packagesDir = Path . Combine ( _testGlobalDirectory . FullName , "packages" ) ;
43+ var packagesDir = Path . Combine ( _testCacheDirectory . FullName , "packages" ) ;
4444 var buildToolsPackageDir = Path . Combine ( packagesDir , "Microsoft.Windows.SDK.BuildTools.10.0.26100.1" ) ;
4545 var binDir = Path . Combine ( buildToolsPackageDir , "bin" , "10.0.26100.0" , "x64" ) ;
4646 Directory . CreateDirectory ( binDir ) ;
@@ -59,7 +59,7 @@ public void GetBuildToolPath_WithNonExistentTool_ReturnsNull()
5959 public void GetBuildToolPath_WithMultipleVersions_ReturnsLatestVersion ( )
6060 {
6161 // Arrange - Create multiple package versions
62- var packagesDir = Path . Combine ( _testGlobalDirectory . FullName , "packages" ) ;
62+ var packagesDir = Path . Combine ( _testCacheDirectory . FullName , "packages" ) ;
6363
6464 // Create older version
6565 var olderPackageDir = Path . Combine ( packagesDir , "Microsoft.Windows.SDK.BuildTools.10.0.22000.1" ) ;
@@ -86,7 +86,7 @@ public void GetBuildToolPath_WithMultipleVersions_ReturnsLatestVersion()
8686 public void GetBuildToolPath_WithPinnedVersion_ReturnsPinnedVersion ( )
8787 {
8888 // Arrange - Create multiple package versions
89- var packagesDir = Path . Combine ( _testGlobalDirectory . FullName , "packages" ) ;
89+ var packagesDir = Path . Combine ( _testCacheDirectory . FullName , "packages" ) ;
9090
9191 // Create older version
9292 var olderPackageDir = Path . Combine ( packagesDir , "Microsoft.Windows.SDK.BuildTools.10.0.22000.1742" ) ;
@@ -122,7 +122,7 @@ public void GetBuildToolPath_WithPinnedVersion_ReturnsPinnedVersion()
122122 public void GetBuildToolPath_WithMultipleArchitectures_ReturnsCorrectArchitecture ( )
123123 {
124124 // Arrange - Create package with multiple architectures
125- var packagesDir = Path . Combine ( _testGlobalDirectory . FullName , "packages" ) ;
125+ var packagesDir = Path . Combine ( _testCacheDirectory . FullName , "packages" ) ;
126126 var buildToolsPackageDir = Path . Combine ( packagesDir , "Microsoft.Windows.SDK.BuildTools.10.0.26100.1" ) ;
127127 var binVersionDir = Path . Combine ( buildToolsPackageDir , "bin" , "10.0.26100.0" ) ;
128128
@@ -149,7 +149,7 @@ public void GetBuildToolPath_WithMultipleArchitectures_ReturnsCorrectArchitectur
149149 public async Task RunBuildToolAsync_WithValidTool_ReturnsOutput ( )
150150 {
151151 // Arrange - Create a fake tool that outputs to stdout
152- var packagesDir = Path . Combine ( _testGlobalDirectory . FullName , "packages" ) ;
152+ var packagesDir = Path . Combine ( _testCacheDirectory . FullName , "packages" ) ;
153153 var buildToolsPackageDir = Path . Combine ( packagesDir , "Microsoft.Windows.SDK.BuildTools.10.0.26100.1" ) ;
154154 var binDir = Path . Combine ( buildToolsPackageDir , "bin" , "10.0.26100.0" , "x64" ) ;
155155 Directory . CreateDirectory ( binDir ) ;
@@ -198,7 +198,7 @@ public async Task EnsureBuildToolsAsync_WithNoExistingPackage_ShouldAttemptInsta
198198 public async Task EnsureBuildToolsAsync_WithExistingPackage_ReturnsExistingPath ( )
199199 {
200200 // Arrange - Create existing package structure
201- var packagesDir = Path . Combine ( _testGlobalDirectory . FullName , "packages" ) ;
201+ var packagesDir = Path . Combine ( _testCacheDirectory . FullName , "packages" ) ;
202202 var buildToolsPackageDir = Path . Combine ( packagesDir , "Microsoft.Windows.SDK.BuildTools.10.0.26100.1" ) ;
203203 var binDir = Path . Combine ( buildToolsPackageDir , "bin" , "10.0.26100.0" , "x64" ) ;
204204 Directory . CreateDirectory ( binDir ) ;
@@ -214,7 +214,7 @@ public async Task EnsureBuildToolsAsync_WithExistingPackage_ReturnsExistingPath(
214214 public async Task EnsureBuildToolsAsync_WithForceLatest_ShouldAttemptReinstallation ( )
215215 {
216216 // Arrange - Create existing package structure
217- var packagesDir = Path . Combine ( _testGlobalDirectory . FullName , "packages" ) ;
217+ var packagesDir = Path . Combine ( _testCacheDirectory . FullName , "packages" ) ;
218218 var buildToolsPackageDir = Path . Combine ( packagesDir , "Microsoft.Windows.SDK.BuildTools.10.0.26100.1" ) ;
219219 var binDir = Path . Combine ( buildToolsPackageDir , "bin" , "10.0.26100.0" , "x64" ) ;
220220 Directory . CreateDirectory ( binDir ) ;
@@ -231,7 +231,7 @@ public async Task EnsureBuildToolsAsync_WithForceLatest_ShouldAttemptReinstallat
231231 public async Task EnsureBuildToolAvailableAsync_WithExistingTool_ReturnsToolPath ( )
232232 {
233233 // Arrange - Create package structure with a tool
234- var packagesDir = Path . Combine ( _testGlobalDirectory . FullName , "packages" ) ;
234+ var packagesDir = Path . Combine ( _testCacheDirectory . FullName , "packages" ) ;
235235 var buildToolsPackageDir = Path . Combine ( packagesDir , "Microsoft.Windows.SDK.BuildTools.10.0.26100.1" ) ;
236236 var binDir = Path . Combine ( buildToolsPackageDir , "bin" , "10.0.26100.0" , "x64" ) ;
237237 Directory . CreateDirectory ( binDir ) ;
@@ -250,7 +250,7 @@ public async Task EnsureBuildToolAvailableAsync_WithExistingTool_ReturnsToolPath
250250 public async Task EnsureBuildToolAvailableAsync_WithToolNameWithoutExtension_AddsExtensionAndReturnsPath ( )
251251 {
252252 // Arrange - Create package structure with a tool
253- var packagesDir = Path . Combine ( _testGlobalDirectory . FullName , "packages" ) ;
253+ var packagesDir = Path . Combine ( _testCacheDirectory . FullName , "packages" ) ;
254254 var buildToolsPackageDir = Path . Combine ( packagesDir , "Microsoft.Windows.SDK.BuildTools.10.0.26100.1" ) ;
255255 var binDir = Path . Combine ( buildToolsPackageDir , "bin" , "10.0.26100.0" , "x64" ) ;
256256 Directory . CreateDirectory ( binDir ) ;
@@ -297,7 +297,7 @@ public async Task EnsureBuildToolAvailableAsync_WithNoExistingPackageAndInstallS
297297 public async Task EnsureBuildToolAvailableAsync_WithNonExistentTool_ThrowsFileNotFoundException ( )
298298 {
299299 // Arrange - Create package structure but without the requested tool
300- var packagesDir = Path . Combine ( _testGlobalDirectory . FullName , "packages" ) ;
300+ var packagesDir = Path . Combine ( _testCacheDirectory . FullName , "packages" ) ;
301301 var buildToolsPackageDir = Path . Combine ( packagesDir , "Microsoft.Windows.SDK.BuildTools.10.0.26100.1" ) ;
302302 var binDir = Path . Combine ( buildToolsPackageDir , "bin" , "10.0.26100.0" , "x64" ) ;
303303 Directory . CreateDirectory ( binDir ) ;
@@ -340,7 +340,7 @@ public async Task RunBuildToolAsync_WithNoExistingPackage_AutoInstallsAndRuns()
340340 public async Task RunBuildToolAsync_WithExistingTool_RunsDirectly ( )
341341 {
342342 // Arrange - Create package structure with a working batch file
343- var packagesDir = Path . Combine ( _testGlobalDirectory . FullName , "packages" ) ;
343+ var packagesDir = Path . Combine ( _testCacheDirectory . FullName , "packages" ) ;
344344 var buildToolsPackageDir = Path . Combine ( packagesDir , "Microsoft.Windows.SDK.BuildTools.10.0.26100.1" ) ;
345345 var binDir = Path . Combine ( buildToolsPackageDir , "bin" , "10.0.26100.0" , "x64" ) ;
346346 Directory . CreateDirectory ( binDir ) ;
0 commit comments