public void ShouldThrowApExamChapterException()
 {
     Assert.Throws <InvalidApExamChapterException>(() => { Ensure.ApExamChapterIsValid(21); });
 }
 public void ShouldNotThrowApExamChapterException()
 {
     Assert.DoesNotThrow(() => { Ensure.ApExamChapterIsValid(15); });
 }
 /// <summary>
 ///     Search for kanji by the AP Exam chapter number.
 /// </summary>
 /// <param name="chapter">
 ///     The AP Exam chapter number.
 /// </param>
 /// <returns>
 ///     The API response and basic metadata about the kanji character(s) that match the search criteria.
 /// </returns>
 public async Task <IApiResponse <List <KanjiSimpleResponse> > > SearchByApExamChapter(int chapter)
 {
     Ensure.ApExamChapterIsValid(chapter);
     return(await this.Connection.Get <List <KanjiSimpleResponse> >(new Uri(BaseUri, AP_EXAM_URL_PARAMETER + chapter)));
 }