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:
authornulltoken <emeric.fermas@gmail.com>2012-05-11 13:21:21 +0400
committernulltoken <emeric.fermas@gmail.com>2012-05-11 13:21:21 +0400
commit5b219c830734e7f0f1ab61c833d8ae8b0ccec231 (patch)
tree8c71c7ba3ccb121aaffd94b70bbd50e1268d2e6d
parent02e521018b6660f03cf7dfe2bc0e5bc7e1021414 (diff)
Fix two tests to honor git commit and tag messages formatting
Messages are supposed to end with a trailing \n
-rw-r--r--LibGit2Sharp.Tests/RepositoryFixture.cs6
-rw-r--r--LibGit2Sharp.Tests/TagFixture.cs4
2 files changed, 5 insertions, 5 deletions
diff --git a/LibGit2Sharp.Tests/RepositoryFixture.cs b/LibGit2Sharp.Tests/RepositoryFixture.cs
index 2b85ae84..d7d29041 100644
--- a/LibGit2Sharp.Tests/RepositoryFixture.cs
+++ b/LibGit2Sharp.Tests/RepositoryFixture.cs
@@ -270,8 +270,8 @@ namespace LibGit2Sharp.Tests
[Fact]
public void CanLookupWhithShortIdentifers()
{
- const string expectedAbbrevSha = "edfecad";
- const string expectedSha = expectedAbbrevSha + "02d96c9dbf64f6e238c45ddcfa762eef0";
+ const string expectedAbbrevSha = "fe8410b";
+ const string expectedSha = expectedAbbrevSha + "6bfdf69ccfd4f397110d61f8070e46e40";
SelfCleaningDirectory scd = BuildSelfCleaningDirectory();
@@ -283,7 +283,7 @@ namespace LibGit2Sharp.Tests
repo.Index.Stage(filePath);
Signature author = Constants.Signature;
- Commit commit = repo.Commit("Initial commit", author, author);
+ Commit commit = repo.Commit("Initial commit\n", author, author);
commit.Sha.ShouldEqual(expectedSha);
diff --git a/LibGit2Sharp.Tests/TagFixture.cs b/LibGit2Sharp.Tests/TagFixture.cs
index d4486d49..0886c7fd 100644
--- a/LibGit2Sharp.Tests/TagFixture.cs
+++ b/LibGit2Sharp.Tests/TagFixture.cs
@@ -154,7 +154,7 @@ namespace LibGit2Sharp.Tests
public void CreatingAnAnnotatedTagIsDeterministic()
{
const string tagName = "nullTAGen";
- const string tagMessage = "I've been tagged!";
+ const string tagMessage = "I've been tagged!\n";
TemporaryCloneOfTestRepo path = BuildTemporaryCloneOfTestRepo();
using (var repo = new Repository(path.RepositoryPath))
@@ -162,7 +162,7 @@ namespace LibGit2Sharp.Tests
Tag newTag = repo.Tags.Create(tagName, commitE90810BSha, signatureNtk, tagMessage);
newTag.Target.Sha.ShouldEqual(commitE90810BSha);
newTag.IsAnnotated.ShouldBeTrue();
- newTag.Annotation.Sha.ShouldEqual("24f6de34a108d931c6056fc4687637fe36c6bd6b");
+ newTag.Annotation.Sha.ShouldEqual("26623eee75440d63e10dcb752b88a0004c914161");
newTag.Annotation.Target.Sha.ShouldEqual(commitE90810BSha);
}
}