public async Task CanRetrieveTimelineForIssue() { var newIssue = new NewIssue("a test issue") { Body = "A new unassigned issue" }; var issue = await _issuesClient.Create(_context.RepositoryOwner, _context.RepositoryName, newIssue); var timelineEventInfos = await _issueTimelineClient.GetAllForIssue(_context.RepositoryOwner, _context.RepositoryName, issue.Number); Assert.Empty(timelineEventInfos); var closed = await _issuesClient.Update(_context.RepositoryOwner, _context.RepositoryName, issue.Number, new IssueUpdate() { State = ItemState.Closed }); Assert.NotNull(closed); timelineEventInfos = await _issueTimelineClient.GetAllForIssue(_context.RepositoryOwner, _context.RepositoryName, issue.Number); Assert.Equal(1, timelineEventInfos.Count); Assert.Equal(EventInfoState.Closed, timelineEventInfos[0].Event); }
public async Task CanRetrieveTimelineForIssue() { var timelineEventInfos = await _issueTimelineClient.GetAllForIssue("octokit", "octokit.net", 1503); Assert.NotEmpty(timelineEventInfos); Assert.NotEqual(0, timelineEventInfos.Count); }