diff options
author | nulltoken <emeric.fermas@gmail.com> | 2014-08-24 19:05:21 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2014-08-27 21:38:45 +0400 |
commit | b5c658d3eca47f8fa26626cb08d7067181e2d4e6 (patch) | |
tree | c8fc4d0d95ea1924a5d26142fce2ce851de071f3 /LibGit2Sharp.Tests | |
parent | e0a15ae60a3b3e7fc3dde0337535f974a1baa6ff (diff) |
Enforce Clone() test coverage
Fix #701
Diffstat (limited to 'LibGit2Sharp.Tests')
-rw-r--r-- | LibGit2Sharp.Tests/CloneFixture.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/LibGit2Sharp.Tests/CloneFixture.cs b/LibGit2Sharp.Tests/CloneFixture.cs index 88629b1f..a3b35d8b 100644 --- a/LibGit2Sharp.Tests/CloneFixture.cs +++ b/LibGit2Sharp.Tests/CloneFixture.cs @@ -191,5 +191,13 @@ namespace LibGit2Sharp.Tests Assert.False(repo.Info.IsBare); } } + + [Fact] + public void CloningAnUrlWithoutPathThrows() + { + var scd = BuildSelfCleaningDirectory(); + + Assert.Throws<InvalidSpecificationException>(() => Repository.Clone("http://github.com", scd.DirectoryPath)); + } } } |