Exemple #1
0
        public async Task GetAnimeUserUpdatesAsync_BebopId_ShouldParseCowboyBebopUserUpdates()
        {
            // When
            var bebop = await _jikan.GetAnimeUserUpdatesAsync(1);

            // Then
            var firstUpdate = bebop.Data.First();

            using (new AssertionScope())
            {
                bebop.Data.Should().HaveCount(75);
                firstUpdate.Date.Value.Should().BeBefore(DateTime.Now);
                firstUpdate.User.Should().NotBeNull();
                firstUpdate.User.Username.Should().NotBeNullOrWhiteSpace();
                firstUpdate.User.Url.Should().NotBeNullOrWhiteSpace();
            }
        }