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:
authorSaaman <romain.magny@gmail.com>2013-04-26 15:52:20 +0400
committerSaaman <romain.magny@gmail.com>2013-04-26 15:56:44 +0400
commitcd0a909fc1347ee7c0c53fc3f357c296a9b74f8d (patch)
treec05734e06876f47e239b1ca11040e9a1f5fef050 /LibGit2Sharp.Tests/CheckoutFixture.cs
parentd3c6da53fecb3dc2806ab17b7211d03d52c3aa7e (diff)
Enforce checkout test coverage
Diffstat (limited to 'LibGit2Sharp.Tests/CheckoutFixture.cs')
-rw-r--r--LibGit2Sharp.Tests/CheckoutFixture.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/LibGit2Sharp.Tests/CheckoutFixture.cs b/LibGit2Sharp.Tests/CheckoutFixture.cs
index 4263c91f..342aab6f 100644
--- a/LibGit2Sharp.Tests/CheckoutFixture.cs
+++ b/LibGit2Sharp.Tests/CheckoutFixture.cs
@@ -601,6 +601,15 @@ namespace LibGit2Sharp.Tests
}
}
+ [Fact]
+ public void CheckoutLowerCasedHeadThrows()
+ {
+ using (var repo = new Repository(StandardTestRepoWorkingDirPath))
+ {
+ Assert.Throws<LibGit2SharpException>(() => repo.Checkout("head"));
+ }
+ }
+
/// <summary>
/// Helper method to populate a simple repository with
/// a single file and two branches.