Skip to content

Commit 379cf6b

Browse files
author
Ryan Roden-Corrent
committed
Actually test SetConfigSearchPaths for empty array.
I lied when I said I tested this 2 commits earlier. Make sure SetConfigSearchPaths(level, string[] { }) behaves the same as SetConfigSearchPaths(level, null)
1 parent 430ab69 commit 379cf6b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

LibGit2Sharp.Tests/ConfigurationFixture.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ public void CanResetSearchPaths()
458458
() => GlobalSettings.SetConfigSearchPaths(ConfigurationLevel.Global),
459459
() => GlobalSettings.SetConfigSearchPaths(ConfigurationLevel.Global, null),
460460
() => GlobalSettings.SetConfigSearchPaths(ConfigurationLevel.Global, string.Empty),
461+
() => GlobalSettings.SetConfigSearchPaths(ConfigurationLevel.Global, new string[] { }),
461462
};
462463

463464
// record the default search path

0 commit comments

Comments
 (0)