Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs')
-rw-r--r--LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs b/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs
index 63398fc4..a7cc1a58 100644
--- a/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs
+++ b/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs
@@ -405,8 +405,8 @@ namespace LibGit2Sharp.Tests.TestHelpers
}
protected static void AssertRefLogEntry(IRepository repo, string canonicalName,
- ObjectId to, string message, ObjectId @from = null,
- Signature committer = null)
+ string message, ObjectId @from, ObjectId to,
+ Identity committer, DateTimeOffset when)
{
var reflogEntry = repo.Refs.Log(canonicalName).First();
@@ -414,9 +414,8 @@ namespace LibGit2Sharp.Tests.TestHelpers
Assert.Equal(message, reflogEntry.Message);
Assert.Equal(@from ?? ObjectId.Zero, reflogEntry.From);
- committer = committer ?? repo.Config.BuildSignature(DateTimeOffset.Now);
Assert.Equal(committer.Email, reflogEntry.Committer.Email);
- Assert.InRange(reflogEntry.Committer.When, committer.When - TimeSpan.FromSeconds(5), committer.When);
+ Assert.InRange(reflogEntry.Committer.When, when - TimeSpan.FromSeconds(5), when);
}
protected static void EnableRefLog(IRepository repository, bool enable = true)