Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2014-08-24 19:05:21 +0400
committernulltoken <emeric.fermas@gmail.com>2014-08-27 21:38:45 +0400
commitb5c658d3eca47f8fa26626cb08d7067181e2d4e6 (patch)
treec8fc4d0d95ea1924a5d26142fce2ce851de071f3 /LibGit2Sharp.Tests
parente0a15ae60a3b3e7fc3dde0337535f974a1baa6ff (diff)
Enforce Clone() test coverage
Fix #701
Diffstat (limited to 'LibGit2Sharp.Tests')
-rw-r--r--LibGit2Sharp.Tests/CloneFixture.cs8
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));
+ }
}
}