Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 8c8ddca

Browse files
committed
Add no directory test
1 parent 1d9563e commit 8c8ddca

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/GitHub.Exports.UnitTests/GitServiceIntegrationTests.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ public void Empty_Repository()
2525
}
2626
}
2727

28+
[Test]
29+
public void No_Directory()
30+
{
31+
var unknownPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
32+
33+
var target = new GitService(new RepositoryFacade());
34+
35+
Assert.Throws<ArgumentException>(() => target.CreateLocalRepositoryModel(unknownPath));
36+
}
37+
2838
[TestCase("origin", "https://github.com/github/VisualStudio", false)]
2939
[TestCase("not_origin", "https://github.com/github/VisualStudio", true)]
3040
[TestCase(null, null, false, Description = "Has no remotes")]

0 commit comments

Comments
 (0)