Skip to content

Commit a976544

Browse files
authored
-
1 parent dd93762 commit a976544

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libraries/Microsoft.Extensions.DependencyModel/tests/PackageResolverTest.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@ public void ShouldUseEnvironmentVariableToGetDefaultLocation()
3030
[Fact]
3131
public void ShouldUseNugetUnderUserProfile()
3232
{
33-
var expectedBaseDir = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
3433
var environment = EnvironmentMockBuilder.Create()
3534
.AddAppContextData("PROBING_DIRECTORIES", string.Empty)
3635
.Build();
3736

3837
var result = PackageCompilationAssemblyResolver.GetDefaultProbeDirectories(environment);
39-
result.Should().Contain(Path.Combine(expectedBaseDir, ".nuget", "packages"));
38+
result.Should().Contain(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".nuget", "packages"));
4039
}
4140

4241
[Fact]

0 commit comments

Comments
 (0)