Skip to content

Commit 9620815

Browse files
committed
fix impacted tests
1 parent 416391c commit 9620815

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

LibGit2Sharp.Tests/ConfigurationFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public void CanSetBooleanValue()
256256
[Fact]
257257
public void SettingLocalConfigurationOutsideAReposThrows()
258258
{
259-
using (var config = new Configuration())
259+
using (var config = new Configuration(null, null, null))
260260
{
261261
Assert.Throws<LibGit2SharpException>(() => config.Set("unittests.intsetting", 3));
262262
}

LibGit2Sharp/Configuration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class Configuration : IDisposable,
2626
/// <summary>
2727
/// Default constructor, should only be used for mocking purposes
2828
/// </summary>
29-
public Configuration() : this(null, null, null)
29+
protected Configuration()
3030
{ }
3131

3232
internal Configuration(Repository repository, string globalConfigurationFileLocation,

0 commit comments

Comments
 (0)