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>2015-01-27 10:11:19 +0300
committernulltoken <emeric.fermas@gmail.com>2015-02-01 13:29:05 +0300
commit19cd9f5c5ae4f65c5d22e9ed0dddd8898ff19c01 (patch)
tree815abd3f391910b8fcabc16fae30a8b651d52ce8 /LibGit2Sharp.Tests/CheckoutFixture.cs
parent03e2bb28d89b1f9280b4637cfc63a73b1eed434a (diff)
Deprecate Branch.Checkout()
Diffstat (limited to 'LibGit2Sharp.Tests/CheckoutFixture.cs')
-rw-r--r--LibGit2Sharp.Tests/CheckoutFixture.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/LibGit2Sharp.Tests/CheckoutFixture.cs b/LibGit2Sharp.Tests/CheckoutFixture.cs
index 03fa3917..d50ff8d1 100644
--- a/LibGit2Sharp.Tests/CheckoutFixture.cs
+++ b/LibGit2Sharp.Tests/CheckoutFixture.cs
@@ -162,7 +162,7 @@ namespace LibGit2Sharp.Tests
// Checkout other_branch
Branch otherBranch = repo.Branches[otherBranchName];
Assert.NotNull(otherBranch);
- otherBranch.Checkout();
+ repo.Checkout(otherBranch);
// Verify working directory is updated
Assert.False(repo.RetrieveStatus().IsDirty);
@@ -190,7 +190,7 @@ namespace LibGit2Sharp.Tests
// Checkout other_branch
Branch otherBranch = repo.Branches[otherBranchName];
Assert.NotNull(otherBranch);
- otherBranch.Checkout();
+ repo.Checkout(otherBranch);
// Verify working directory is updated
Assert.False(repo.RetrieveStatus().IsDirty);
@@ -218,7 +218,7 @@ namespace LibGit2Sharp.Tests
// Checkout other_branch
Branch otherBranch = repo.Branches[otherBranchName];
Assert.NotNull(otherBranch);
- otherBranch.Checkout();
+ repo.Checkout(otherBranch);
// Verify working directory is updated
Assert.False(repo.RetrieveStatus().IsDirty);
@@ -410,7 +410,8 @@ namespace LibGit2Sharp.Tests
bool wasCalled = false;
Branch branch = repo.Branches[otherBranchName];
- branch.Checkout(new CheckoutOptions() { OnCheckoutProgress = (path, completed, total) => wasCalled = true});
+ repo.Checkout(branch,
+ new CheckoutOptions { OnCheckoutProgress = (path, completed, total) => wasCalled = true});
Assert.True(wasCalled);
}
@@ -684,7 +685,7 @@ namespace LibGit2Sharp.Tests
Assert.False(repo.Info.IsHeadDetached);
- initial.Checkout();
+ repo.Checkout(initial);
// Head should point at initial commit.
Assert.Equal(repo.Head.Tip, initialCommit);