Пример #1
0
 public void GetMangaListForNonexistentUserThrowsCorrectException()
 {
     using (MyAnimeListApi api = new MyAnimeListApi())
     {
         Assert.Throws <MalUserNotFoundException>(() => api.GetMangaListForUser("oijsfjisfdjfsdojpfsdp"));
     }
 }
Пример #2
0
        public void GetMangaListForUser()
        {
            string username = "******";

            using (MyAnimeListApi api = new MyAnimeListApi())
            {
                MalUserLookupResults userLookup = api.GetMangaListForUser(username);

                Assert.NotEmpty(userLookup.MangaList);
            }
        }