Skip to content

Commit 3b23c36

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 142b0dd commit 3b23c36

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
@@ -480,6 +480,7 @@ public void CanResetSearchPaths()
480480
() => GlobalSettings.SetConfigSearchPaths(ConfigurationLevel.Global),
481481
() => GlobalSettings.SetConfigSearchPaths(ConfigurationLevel.Global, null),
482482
() => GlobalSettings.SetConfigSearchPaths(ConfigurationLevel.Global, string.Empty),
483+
() => GlobalSettings.SetConfigSearchPaths(ConfigurationLevel.Global, new string[] { }),
483484
};
484485

485486
// record the default search path

0 commit comments

Comments
 (0)