Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Remove obsolete NotCheckedOutWithWorkingDirectoryDirty test
Browse files Browse the repository at this point in the history
We no longer check to see if a repo is dirty before attempting a checkout.
  • Loading branch information
jcansdale committed Nov 8, 2017
1 parent 2cfe701 commit f54b9e8
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,21 +181,6 @@ public async Task NotCheckedOut()
Assert.Equal("Checkout pr/123", target.CheckoutState.ToolTip);
}

[Fact]
public async Task NotCheckedOutWithWorkingDirectoryDirty()
{
var target = CreateTarget(
currentBranch: "master",
existingPrBranch: "pr/123",
dirty: true);
var repo = Substitute.For<IRemoteRepositoryModel>();

await target.Load(repo, CreatePullRequest());

Assert.False(target.Checkout.CanExecute(null));
Assert.Equal("Cannot checkout as your working directory has uncommitted changes.", target.CheckoutState.ToolTip);
}

[Fact]
public async Task CheckoutExistingLocalBranch()
{
Expand Down Expand Up @@ -515,7 +500,6 @@ public async Task UpdatesOperationErrorWithExceptionMessage()
string currentBranch = "master",
string existingPrBranch = null,
bool prFromFork = false,
bool dirty = false,
int aheadBy = 0,
int behindBy = 0,
IPullRequestSessionManager sessionManager = null)
Expand All @@ -524,7 +508,6 @@ public async Task UpdatesOperationErrorWithExceptionMessage()
currentBranch: currentBranch,
existingPrBranch: existingPrBranch,
prFromFork: prFromFork,
dirty: dirty,
aheadBy: aheadBy,
behindBy: behindBy,
sessionManager: sessionManager).Item1;
Expand Down

0 comments on commit f54b9e8

Please sign in to comment.