예제 #1
0
        public async Task GetUserHistory_ErvelanWithInvalidExtension_ShouldThrowValidationException(UserHistoryExtension userHistoryExtension)
        {
            // When
            Func <Task <UserHistory> > func = _jikan.Awaiting(x => x.GetUserHistory("Ervelan", userHistoryExtension));

            // Then
            await func.Should().ThrowExactlyAsync <JikanValidationException>();
        }
예제 #2
0
        public async Task GetUserHistory_ErvelanHistoryWithFilter_ShouldParseErvelanMangaHistory(UserHistoryExtension userHistoryExtension)
        {
            // When
            var userHistory = await _jikan.GetUserHistoryAsync("Ervelan", userHistoryExtension);

            // Then
            using (new AssertionScope())
            {
                userHistory.Should().NotBeNull();
                userHistory.Data.Count.Should().BeGreaterOrEqualTo(0);
            }
        }