We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09d4ed0 commit 7b52706Copy full SHA for 7b52706
LibGit2Sharp.Tests/RemoteFixture.cs
@@ -214,6 +214,19 @@ public void CanAddANewRemoteWithAFetchRefSpec()
214
}
215
216
217
+ [Theory]
218
+ [InlineData("sher.lock")]
219
+ [InlineData("/")]
220
+ public void AddingARemoteWithAnInvalidNameThrows(string name)
221
+ {
222
+ using (var repo = new Repository(BareTestRepoPath))
223
224
+ const string url = "https://github.com/libgit2/libgit2sharp.git";
225
+
226
+ Assert.Throws<InvalidSpecificationException>(() => repo.Network.Remotes.Add(name, url));
227
+ }
228
229
230
[Theory]
231
[InlineData("valid/remote", true)]
232
[InlineData("sher.lock", false)]
0 commit comments