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/CommitFixture.cs')
-rw-r--r--LibGit2Sharp.Tests/CommitFixture.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/LibGit2Sharp.Tests/CommitFixture.cs b/LibGit2Sharp.Tests/CommitFixture.cs
index f93d65cc..e25bcb52 100644
--- a/LibGit2Sharp.Tests/CommitFixture.cs
+++ b/LibGit2Sharp.Tests/CommitFixture.cs
@@ -500,12 +500,12 @@ namespace LibGit2Sharp.Tests
AssertBlobContent(repo.Head[relativeFilepath], "nulltoken\n");
AssertBlobContent(commit[relativeFilepath], "nulltoken\n");
- var name = repo.Config.Get<string>("user.name", null);
- var email = repo.Config.Get<string>("user.email", null);
- Assert.Equal(commit.Author.Name, name);
- Assert.Equal(commit.Author.Email, email);
- Assert.Equal(commit.Committer.Name, name);
- Assert.Equal(commit.Committer.Email, email);
+ var name = repo.Config.Get<string>("user.name");
+ var email = repo.Config.Get<string>("user.email");
+ Assert.Equal(commit.Author.Name, name.Value);
+ Assert.Equal(commit.Author.Email, email.Value);
+ Assert.Equal(commit.Committer.Name, name.Value);
+ Assert.Equal(commit.Committer.Email, email.Value);
}
}