diff options
author | yorah <yoram.harmelin@gmail.com> | 2012-11-07 16:44:49 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-12-05 11:38:15 +0400 |
commit | 3cb5145c08fa6350ebdd82fcd9989a1cf0d1172a (patch) | |
tree | 668556ebf95414fb2ebf8f6aa51202598c82095a /LibGit2Sharp.Tests/CommitFixture.cs | |
parent | 0332c35dbaeebad177645bf62ad2c5efabefd17b (diff) |
Make repo.Config.Get() return the originating store
Signed-off-by: Unit Test <yoram.harmelin@gmail.com>
Diffstat (limited to 'LibGit2Sharp.Tests/CommitFixture.cs')
-rw-r--r-- | LibGit2Sharp.Tests/CommitFixture.cs | 12 |
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); } } |