diff options
author | Saaman <romain.magny@gmail.com> | 2013-04-26 15:52:20 +0400 |
---|---|---|
committer | Saaman <romain.magny@gmail.com> | 2013-04-26 15:56:44 +0400 |
commit | cd0a909fc1347ee7c0c53fc3f357c296a9b74f8d (patch) | |
tree | c05734e06876f47e239b1ca11040e9a1f5fef050 /LibGit2Sharp.Tests/CheckoutFixture.cs | |
parent | d3c6da53fecb3dc2806ab17b7211d03d52c3aa7e (diff) |
Enforce checkout test coverage
Diffstat (limited to 'LibGit2Sharp.Tests/CheckoutFixture.cs')
-rw-r--r-- | LibGit2Sharp.Tests/CheckoutFixture.cs | 9 |
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. |