8000 Enforce checkout test coverage · vrkcse2011/libgit2sharp@cd0a909 · GitHub
[go: up one dir, main page]

Skip to content

Commit cd0a909

Browse files
committed
Enforce checkout test coverage
1 parent d3c6da5 commit cd0a909

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

LibGit2Sharp.Tests/CheckoutFixture.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,15 @@ public void CheckingOutABranchDoesNotAlterBinaryFiles()
601601
}
602602
}
603603

604+
[Fact]
605+
public void CheckoutLowerCasedHeadThrows()
606+
{
607+
using (var repo = new Repository(StandardTestRepoWorkingDirPath))
608+
{
609+
Assert.Throws<LibGit2SharpException>(() => repo.Checkout("head"));
610+
}
611+
}
612+
604613
/// <summary>
605614
/// Helper method to populate a simple repository with
606615
/// a single file and two branches.

0 commit comments

Comments
 (0)
0