8000 Enforce Index.RetrieveStatus() test coverage · Folcon/libgit2sharp@c2f6ab2 · GitHub
[go: up one dir, main page]

Skip to content

Commit c2f6ab2

Browse files
committed
Enforce Index.RetrieveStatus() test coverage
1 parent 008ccac commit c2f6ab2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

LibGit2Sharp.Tests/IndexFixture.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,15 @@ public void CanRetrieveTheStatusOfAFile()
442442
}
443443
}
444444

445+
[Test]
446+
public void RetrievingTheStatusOfADirectoryThrows()
447+
{
448+
using (var repo = new Repository(StandardTestRepoPath))
449+
{
450+
Assert.Throws<LibGit2Exception>(() => { FileStatus status = repo.Index.RetrieveStatus("1"); });
451+
}
452+
}
453+
445454
[Test]
446455
public void CanRetrieveTheStatusOfTheWholeWorkingDirectory()
447456
{

0 commit comments

Comments
 (0)
0