|
4 | 4 | using System.Linq;
|
5 | 5 | using LibGit2Sharp.Tests.TestHelpers;
|
6 | 6 | using Xunit;
|
7 |
| -using Xunit.Extensions; |
8 | 7 |
|
9 | 8 | namespace LibGit2Sharp.Tests
|
10 | 9 | {
|
11 | 10 | public class RepositoryFixture : BaseFixture
|
12 | 11 | {
|
13 | 12 | private const string commitSha = "8496071c1b46c854b31185ea97743be6a8774479";
|
14 |
| - private const string TestRepoUrl = "git://github.com/libgit2/TestGitRepository"; |
15 | 13 |
|
16 | 14 | [Fact]
|
17 | 15 | public void CanCreateBareRepo()
|
@@ -468,76 +466,6 @@ public void CanDetectIfTheHeadIsOrphaned()
|
468 | 466 | }
|
469 | 467 | }
|
470 | 468 |
|
471 |
| - [Theory] |
472 |
| - [InlineData("http://github.com/libgit2/TestGitRepository")] |
473 |
| - [InlineData("https://github.com/libgit2/TestGitRepository")] |
474 |
| - [InlineData("git://github.com/libgit2/TestGitRepository")] |
475 |
| - //[InlineData("git@github.com:libgit2/TestGitRepository")] |
476 |
| - public void CanClone(string url) |
477 |
| - { |
478 |
| - var scd = BuildSelfCleaningDirectory(); |
479 |
| - using (Repository repo = Repository.Clone(url, scd.RootedDirectoryPath)) |
480 |
| - { |
481 |
| - string dir = repo.Info.Path; |
482 |
| - Assert.True(Path.IsPathRooted(dir)); |
483 |
| - Assert.True(Directory.Exists(dir)); |
484 |
| - |
485 |
| - Assert.NotNull(repo.Info.WorkingDirectory); |
486 |
| - Assert.Equal(Path.Combine(scd.RootedDirectoryPath, ".git" + Path.DirectorySeparatorChar), repo.Info.Path); |
487 |
| - Assert.False(repo.Info.IsBare); |
488 |
| - |
489 |
| - Assert.True(File.Exists(Path.Combine(scd.RootedDirectoryPath, "master.txt"))); |
490 |
| - Assert.Equal(repo.Head.Name, "master"); |
491 |
| - Assert.Equal(repo.Head.Tip.Id.ToString(), "49322bb17d3acc9146f98c97d078513228bbf3c0"); |
492 |
| - } |
493 |
| - } |
494 |
| - |
495 |
| - [Theory] |
496 |
| - [InlineData("http://github.com/libgit2/TestGitRepository")] |
497 |
| - [InlineData("https://github.com/libgit2/TestGitRepository")] |
498 |
| - [InlineData("git://github.com/libgit2/TestGitRepository")] |
499 |
| - //[InlineData("git@github.com:libgit2/TestGitRepository")] |
500 |
| - public void CanCloneBarely(string url) |
501 |
| - { |
502 |
| - var scd = BuildSelfCleaningDirectory(); |
503 |
| - using (Repository repo = Repository.Clone(url, scd.RootedDirectoryPath, bare:true)) |
504 |
| - { |
505 |
| - string dir = repo.Info.Path; |
506 |
| - Assert.True(Path.IsPathRooted(dir)); |
507 |
| - Assert.True(Directory.Exists(dir)); |
508 |
| - |
509 |
| - Assert.Null(repo.Info.WorkingDirectory); |
510 |
| - Assert.Equal(scd.RootedDirectoryPath + Path.DirectorySeparatorChar, repo.Info.Path); |
511 |
| - Assert.True(repo.Info.IsBare); |
512 |
| - } |
513 |
| - } |
514 |
| - |
515 |
| - [Fact] |
516 |
| - public void WontCheckoutIfAskedNotTo() |
517 |
| - { |
518 |
| - var scd = BuildSelfCleaningDirectory(); |
519 |
| - using (Repository repo = Repository.Clone(TestRepoUrl, scd.RootedDirectoryPath, checkout:false)) |
520 |
| - { |
521 |
| - Assert.False(File.Exists(Path.Combine(scd.RootedDirectoryPath, "master.txt"))); |
522 |
| - } |
523 |
| - } |
524 |
| - |
525 |
| - [Fact] |
526 |
| - public void CallsProgressCallbacks() |
527 |
| - { |
528 |
| - bool transferWasCalled = false; |
529 |
| - bool checkoutWasCalled = false; |
530 |
| - |
531 |
| - var scd = BuildSelfCleaningDirectory(); |
532 |
| - using (Repository repo = Repository.Clone(TestRepoUrl, scd.RootedDirectoryPath, |
533 |
| - onTransferProgress: (_) => transferWasCalled = true, |
534 |
| - onCheckoutProgress: (a,b,c) => checkoutWasCalled = true)) |
535 |
| - { |
536 |
| - Assert.True(transferWasCalled); |
537 |
| - Assert.True(checkoutWasCalled); |
538 |
| - } |
539 |
| - } |
540 |
| - |
541 | 469 | [Fact]
|
542 | 470 | public void QueryingTheRemoteForADetachedHeadBranchReturnsNull()
|
543 | 471 | {
|
|
0 commit comments