diff options
author | nulltoken <emeric.fermas@gmail.com> | 2013-04-12 19:16:28 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2013-05-02 12:58:05 +0400 |
commit | ba6e5c9670e59f8aae6f1a6fb6269cfaaf9d3128 (patch) | |
tree | 9b7ba43b3a314ef32c7046a338904520774b164d /LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs | |
parent | fb13e4edec53a779eacdf3cd438f151184ce1c0a (diff) |
Remove SetIgnoreCaseOrSkip test helper
Diffstat (limited to 'LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs')
-rw-r--r-- | LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs b/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs index 177e07e1..2158b590 100644 --- a/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs +++ b/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs @@ -149,7 +149,7 @@ namespace LibGit2Sharp.Tests.TestHelpers } } - protected void InconclusiveIf(Func<bool> predicate, string message) + protected static void InconclusiveIf(Func<bool> predicate, string message) { if (!predicate()) { @@ -166,18 +166,6 @@ namespace LibGit2Sharp.Tests.TestHelpers Assert.True(r.Success, text); } - protected static void SetIgnoreCaseOrSkip(string path, bool ignorecase) - { - var canIgnoreCase = Directory.Exists(path.ToUpperInvariant()) && Directory.Exists(path.ToLowerInvariant()); - if (!canIgnoreCase && ignorecase) - throw new SkipException("Skipping 'ignorecase = true' test on case-sensitive file system."); - - using (var repo = new Repository(path)) - { - repo.Config.Set("core.ignorecase", ignorecase); - } - } - public RepositoryOptions BuildFakeConfigs(SelfCleaningDirectory scd) { var options = BuildFakeRepositoryOptions(scd); |