Skip to content

Commit

Permalink
updating tests as the example repository changed
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey committed Oct 4, 2016
1 parent d3467e9 commit 12f5627
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Octokit.Tests.Integration/Clients/PullRequestsClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ public async Task CanBrowseCommits()

var result = await _fixture.Commits(Helper.UserName, _context.RepositoryName, pullRequest.Number);

Assert.Equal(1, result.Count);
Assert.Equal(2, result.Count);
Assert.Equal("this is the commit to merge into the pull request", result[0].Commit.Message);
}

Expand All @@ -765,7 +765,7 @@ public async Task CanBrowseCommitsWithRepositoryId()

var result = await _fixture.Commits(_context.Repository.Id, pullRequest.Number);

Assert.Equal(1, result.Count);
Assert.Equal(2, result.Count);
Assert.Equal("this is the commit to merge into the pull request", result[0].Commit.Message);
}

Expand Down Expand Up @@ -794,11 +794,11 @@ public async Task CanGetCommitsAndCommentCount()

var result = await _fixture.Commits(Helper.UserName, _context.RepositoryName, pullRequest.Number);

Assert.Equal(2, result.Count);
Assert.Equal(3, result.Count);
Assert.Equal("this is the commit to merge into the pull request", result[0].Commit.Message);
Assert.Equal(0, result[0].Commit.CommentCount);
Assert.Equal(commitMessage, result[1].Commit.Message);
Assert.Equal(1, result[1].Commit.CommentCount);
Assert.Equal(commitMessage, result[2].Commit.Message);
Assert.Equal(1, result[2].Commit.CommentCount);
}

[IntegrationTest]
Expand Down Expand Up @@ -826,11 +826,11 @@ public async Task CanGetCommitsAndCommentCountWithRepositoryId()

var result = await _fixture.Commits(_context.Repository.Id, pullRequest.Number);

Assert.Equal(2, result.Count);
Assert.Equal(3, result.Count);
Assert.Equal("this is the commit to merge into the pull request", result[0].Commit.Message);
Assert.Equal(0, result[0].Commit.CommentCount);
Assert.Equal(commitMessage, result[1].Commit.Message);
Assert.Equal(1, result[1].Commit.CommentCount);
Assert.Equal(commitMessage, result[2].Commit.Message);
Assert.Equal(1, result[2].Commit.CommentCount);
}

[IntegrationTest]
Expand Down

0 comments on commit 12f5627

Please sign in to comment.