Skip to content

Commit

Permalink
added Test case for issue #270 (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
mozts2005 authored Apr 7, 2017
1 parent c4ca108 commit acac84a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Tests/HelpCenter/ArticleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -246,5 +246,17 @@ public async Task TestCaseForIssue220()
});
}

[Test]
public async Task CanGetSecondPageUisngGetByPageUrl()
{
int pageSize = 3;

var res = await api.HelpCenter.Articles.GetArticlesAsync(perPage: pageSize);
Assert.That(res.PageSize, Is.EqualTo(pageSize));

var resp = await api.HelpCenter.Articles.GetByPageUrlAsync<GroupArticleResponse>(res.NextPage, pageSize);
Assert.That(resp.Page, Is.EqualTo(2));

}
}
}

0 comments on commit acac84a

Please sign in to comment.