Skip to content

Commit 7e57858

Browse files
committed
Rename Clone() test helper method in Sandbox()
1 parent 56633eb commit 7e57858

40 files changed

+321
-321
lines changed

LibGit2Sharp.Tests/ArchiveTarFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class ArchiveTarFixture : BaseFixture
1111
[Fact]
1212
public void CanArchiveACommitWithDirectoryAsTar()
1313
{
14-
var path = CloneBareTestRepo();
14+
var path = SandboxBareTestRepo();
1515
using (var repo = new Repository(path))
1616
{
1717
// This tests generates an archive of the bare test repo, and compares it with

LibGit2Sharp.Tests/AttributesFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class AttributesFixture : BaseFixture
99
[Fact]
1010
public void StagingHonorsTheAttributesFiles()
1111
{
12-
string path = CloneStandardTestRepo();
12+
string path = SandboxStandardTestRepo();
1313
using (var repo = new Repository(path))
1414
{
1515
CreateAttributesFile(repo);

LibGit2Sharp.Tests/BlobFixture.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void CanGetBlobAsFilteredText(string autocrlf, string expectedText)
3030
{
3131
SkipIfNotSupported(autocrlf);
3232

33-
var path = CloneBareTestRepo();
33+
var path = SandboxBareTestRepo();
3434
using (var repo = new Repository(path))
3535
{
3636
repo.Config.Set("core.autocrlf", autocrlf);
@@ -52,7 +52,7 @@ public void CanGetBlobAsFilteredText(string autocrlf, string expectedText)
5252
[InlineData("utf-32", 20, "FF FE 00 00 31 00 00 00 32 00 00 00 33 00 00 00 34 00 00 00")]
5353
public void CanGetBlobAsTextWithVariousEncodings(string encodingName, int expectedContentBytes, string expectedUtf7Chars)
5454
{
55-
var path = CloneStandardTestRepo();
55+
var path = SandboxStandardTestRepo();
5656
using (var repo = new Repository(path))
5757
{
5858
var bomFile = "bom.txt";
@@ -129,7 +129,7 @@ public void CanReadBlobFilteredStream(string autocrlf, string expectedContent)
129129
{
130130
SkipIfNotSupported(autocrlf);
131131

132-
var path = CloneBareTestRepo();
132+
var path = SandboxBareTestRepo();
133133
using (var repo = new Repository(path))
134134
{
135135
repo.Config.Set("core.autocrlf", autocrlf);
@@ -153,7 +153,7 @@ public void CanReadBlobFilteredStreamOfUnmodifiedBinary()
153153
{
154154
var binaryContent = new byte[] { 0, 1, 2, 3, 4, 5 };
155155

156-
string path = CloneBareTestRepo();
156+
string path = SandboxBareTestRepo();
157157
using (var repo = new Repository(path))
158158
{
159159
using (var stream = new MemoryStream(binaryContent))

LibGit2Sharp.Tests/BranchFixture.cs

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class BranchFixture : BaseFixture
1717
[InlineData("Ångström")]
1818
public void CanCreateBranch(string name)
1919
{
20-
string path = CloneBareTestRepo();
20+
string path = SandboxBareTestRepo();
2121
using (var repo = new Repository(path))
2222
{
2323
EnableRefLog(repo);
@@ -50,7 +50,7 @@ public void CanCreateBranch(string name)
5050
[Fact]
5151
public void CanCreateAnUnbornBranch()
5252
{
53-
string path = CloneStandardTestRepo();
53+
string path = SandboxStandardTestRepo();
5454
using (var repo = new Repository(path))
5555
{
5656
// No branch named orphan
@@ -85,7 +85,7 @@ public void CanCreateAnUnbornBranch()
8585
[Fact]
8686
public void CanCreateBranchUsingAbbreviatedSha()
8787
{
88-
string path = CloneBareTestRepo();
88+
string path = SandboxBareTestRepo();
8989
using (var repo = new Repository(path))
9090
{
9191
EnableRefLog(repo);
@@ -108,7 +108,7 @@ public void CanCreateBranchUsingAbbreviatedSha()
108108
[InlineData("master")]
109109
public void CanCreateBranchFromImplicitHead(string headCommitOrBranchSpec)
110110
{
111-
string path = CloneStandardTestRepo();
111+
string path = SandboxStandardTestRepo();
112112
using (var repo = new Repository(path))
113113
{
114114
EnableRefLog(repo);
@@ -136,7 +136,7 @@ public void CanCreateBranchFromImplicitHead(string headCommitOrBranchSpec)
136136
[InlineData("master")]
137137
public void CanCreateBranchFromExplicitHead(string headCommitOrBranchSpec)
138138
{
139-
string path = CloneStandardTestRepo();
139+
string path = SandboxStandardTestRepo();
140140
using (var repo = new Repository(path))
141141
{
142142
EnableRefLog(repo);
@@ -157,7 +157,7 @@ public void CanCreateBranchFromExplicitHead(string headCommitOrBranchSpec)
157157
[Fact]
158158
public void CanCreateBranchFromCommit()
159159
{
160-
string path = CloneBareTestRepo();
160+
string path = SandboxBareTestRepo();
161161
using (var repo = new Repository(path))
162162
{
163163
EnableRefLog(repo);
@@ -177,7 +177,7 @@ public void CanCreateBranchFromCommit()
177177
[Fact]
178178
public void CanCreateBranchFromRevparseSpec()
179179
{
180-
string path = CloneBareTestRepo();
180+
string path = SandboxBareTestRepo();
181181
using (var repo = new Repository(path))
182182
{
183183
EnableRefLog(repo);
@@ -200,7 +200,7 @@ public void CanCreateBranchFromRevparseSpec()
200200
[InlineData("refs/tags/test")]
201201
public void CreatingABranchFromATagPeelsToTheCommit(string committish)
202202
{
203-
string path = CloneBareTestRepo();
203+
string path = SandboxBareTestRepo();
204204
using (var repo = new Repository(path))
205205
{
206206
EnableRefLog(repo);
@@ -220,7 +220,7 @@ public void CreatingABranchFromATagPeelsToTheCommit(string committish)
220220
[Fact]
221221
public void CreatingABranchTriggersTheCreationOfADirectReference()
222222
{
223-
string path = CloneBareTestRepo();
223+
string path = SandboxBareTestRepo();
224224
using (var repo = new Repository(path))
225225
{
226226
Branch newBranch = repo.CreateBranch("clone-of-master");
@@ -293,7 +293,7 @@ public void CanListAllBranches()
293293
[Fact]
294294
public void CanListBranchesWithRemoteAndLocalBranchWithSameShortName()
295295
{
296-
string path = CloneStandardTestRepo();
296+
string path = SandboxStandardTestRepo();
297297
using (var repo = new Repository(path))
298298
{
299299
// Create a local branch with the same short name as a remote branch.
@@ -404,7 +404,7 @@ public void QueryRemoteForRemoteBranch()
404404
[Fact]
405405
public void QueryUnresolvableRemoteForRemoteBranch()
406406
{
407-
var path = CloneStandardTestRepo();
407+
var path = SandboxStandardTestRepo();
408408

409409
var fetchRefSpecs = new string[] { "+refs/heads/notfound/*:refs/remotes/origin/notfound/*" };
410410

@@ -429,7 +429,7 @@ public void QueryUnresolvableRemoteForRemoteBranch()
429429
[Fact]
430430
public void QueryAmbigousRemoteForRemoteBranch()
431431
{
432-
var path = CloneStandardTestRepo();
432+
var path = SandboxStandardTestRepo();
433433

434434
var fetchRefSpec = "+refs/heads/*:refs/remotes/origin/*";
435435
var url = "http://github.com/libgit2/TestGitRepository";
@@ -485,7 +485,7 @@ public void CanLookupLocalBranch()
485485
[Fact]
486486
public void CanLookupABranchWhichNameIsMadeOfNon7BitsAsciiCharacters()
487487
{
488-
string path = CloneBareTestRepo();
488+
string path = SandboxBareTestRepo();
489489
using (var repo = new Repository(path))
490490
{
491491
const string name = "Ångström";
@@ -539,7 +539,7 @@ public void CanGetInformationFromUnbornBranch()
539539
[Fact]
540540
public void CanGetTrackingInformationFromBranchSharingNoHistoryWithItsTrackedBranch()
541541
{
542-
string path = CloneStandardTestRepo();
542+
string path = SandboxStandardTestRepo();
543543
using (var repo = new Repository(path))
544544
{
545545
Branch master = repo.Branches["master"];
@@ -565,7 +565,7 @@ public void CanGetTrackingInformationFromBranchSharingNoHistoryWithItsTrackedBra
565565
[Fact]
566566
public void TrackingInformationIsEmptyForBranchTrackingPrunedRemoteBranch()
567567
{
568-
var path = CloneStandardTestRepo();
568+
var path = SandboxStandardTestRepo();
569569
using (var repo = new Repository(path))
570570
{
571571
const string remoteRef = "refs/remotes/origin/master";
@@ -660,7 +660,7 @@ public void CanSetTrackedBranch()
660660
const string testBranchName = "branchToSetUpstreamInfoFor";
661661
const string trackedBranchName = "refs/remotes/origin/master";
662662

663-
string path = CloneStandardTestRepo();
663+
string path = SandboxStandardTestRepo();
664664
using (var repo = new Repository(path))
665665
{
666666
Branch branch = repo.CreateBranch(testBranchName);
@@ -692,7 +692,7 @@ public void SetTrackedBranchForUnreasolvableRemoteThrows()
692692
const string trackedBranchName = "refs/remotes/origin/master";
693693
var fetchRefSpecs = new string[] { "+refs/heads/notfound/*:refs/remotes/origin/notfound/*" };
694694

695-
string path = CloneStandardTestRepo();
695+
string path = SandboxStandardTestRepo();
696696
using (var repo = new Repository(path))
697697
{
698698
// Modify the fetch spec so that the remote for the remote-tracking branch
@@ -720,7 +720,7 @@ public void CanSetUpstreamBranch()
720720
const string trackedBranchName = "refs/remotes/origin/master";
721721
const string remoteName = "origin";
722722

723-
string path = CloneStandardTestRepo();
723+
string path = SandboxStandardTestRepo();
724724
using (var repo = new Repository(path))
725725
{
726726
Branch branch = repo.CreateBranch(testBranchName);
@@ -750,7 +750,7 @@ public void CanSetLocalTrackedBranch()
750750
const string testBranchName = "branchToSetUpstreamInfoFor";
751751
const string localTrackedBranchName = "refs/heads/master";
752752

753-
string path = CloneStandardTestRepo();
753+
string path = SandboxStandardTestRepo();
754754
using (var repo = new Repository(path))
755755
{
756756
Branch branch = repo.CreateBranch(testBranchName);
@@ -788,7 +788,7 @@ public void CanUnsetTrackedBranch()
788788
const string testBranchName = "branchToSetUpstreamInfoFor";
789789
const string trackedBranchName = "refs/remotes/origin/master";
790790

791-
string path = CloneStandardTestRepo();
791+
string path = SandboxStandardTestRepo();
792792
using (var repo = new Repository(path))
793793
{
794794
Branch branch = repo.CreateBranch(testBranchName);
@@ -822,7 +822,7 @@ public void CanWalkCommitsFromBranch()
822822

823823
private void AssertRemoval(string branchName, bool isRemote, bool shouldPreviouslyAssertExistence)
824824
{
825-
string path = CloneStandardTestRepo();
825+
string path = SandboxStandardTestRepo();
826826
using (var repo = new Repository(path))
827827
{
828828
if (shouldPreviouslyAssertExistence)
@@ -849,7 +849,7 @@ public void CanRemoveAnExistingNamedBranch(string branchName, bool isRemote)
849849
[InlineData("origin/br2")]
850850
public void CanRemoveAnExistingBranch(string branchName)
851851
{
852-
string path = CloneStandardTestRepo();
852+
string path = SandboxStandardTestRepo();
853853
using (var repo = new Repository(path))
854854
{
855855
Branch curBranch = repo.Branches[branchName];
@@ -919,7 +919,7 @@ public void OnlyOneBranchIsTheHead()
919919
[Fact]
920920
public void TwoBranchesPointingAtTheSameCommitAreNotBothCurrent()
921921
{
922-
string path = CloneBareTestRepo();
922+
string path = SandboxBareTestRepo();
923923
using (var repo = new Repository(path))
924924
{
925925
Branch master = repo.Branches["refs/heads/master"];
@@ -932,7 +932,7 @@ public void TwoBranchesPointingAtTheSameCommitAreNotBothCurrent()
932932
[Fact]
933933
public void CanRenameABranch()
934934
{
935-
string path = CloneBareTestRepo();
935+
string path = SandboxBareTestRepo();
936936
using (var repo = new Repository(path))
937937
{
938938
EnableRefLog(repo);
@@ -966,7 +966,7 @@ public void BlindlyRenamingABranchOverAnExistingOneThrows()
966966
[Fact]
967967
public void CanRenameABranchWhileOverwritingAnExistingOne()
968968
{
969-
string path = CloneBareTestRepo();
969+
string path = SandboxBareTestRepo();
970970
using (var repo = new Repository(path))
971971
{
972972
EnableRefLog(repo);
@@ -998,7 +998,7 @@ public void CanRenameABranchWhileOverwritingAnExistingOne()
998998
[Fact]
999999
public void DetachedHeadIsNotATrackingBranch()
10001000
{
1001-
string path = CloneStandardTestRepo();
1001+
string path = SandboxStandardTestRepo();
10021002
using (var repo = new Repository(path))
10031003
{
10041004
repo.Reset(ResetMode.Hard);
@@ -1095,7 +1095,7 @@ private static T[] SortedBranches<T>(IEnumerable<Branch> branches, Func<Branch,
10951095
[Fact]
10961096
public void CreatingABranchIncludesTheCorrectReflogEntries()
10971097
{
1098-
string path = CloneStandardTestRepo();
1098+
string path = SandboxStandardTestRepo();
10991099
using (var repo = new Repository(path))
11001100
{
11011101
EnableRefLog(repo);
@@ -1111,7 +1111,7 @@ public void CreatingABranchIncludesTheCorrectReflogEntries()
11111111
[Fact]
11121112
public void RenamingABranchIncludesTheCorrectReflogEntries()
11131113
{
1114-
string path = CloneStandardTestRepo();
1114+
string path = SandboxStandardTestRepo();
11151115
using (var repo = new Repository(path))
11161116
{
11171117
EnableRefLog(repo);

0 commit comments

Comments
 (0)