Skip to content

Commit

Permalink
Enforce Index.RetrieveStatus() test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
nulltoken committed Nov 28, 2011
1 parent 008ccac commit c2f6ab2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions LibGit2Sharp.Tests/IndexFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,15 @@ public void CanRetrieveTheStatusOfAFile()
}
}

[Test]
public void RetrievingTheStatusOfADirectoryThrows()
{
using (var repo = new Repository(StandardTestRepoPath))
{
Assert.Throws<LibGit2Exception>(() => { FileStatus status = repo.Index.RetrieveStatus("1"); });
}
}

[Test]
public void CanRetrieveTheStatusOfTheWholeWorkingDirectory()
{
Expand Down

0 comments on commit c2f6ab2

Please sign in to comment.