public void ShouldParseLelouchLamperouge() { CharactersTop top = Task.Run(() => jikan.GetCharactersTop()).Result; Assert.Equal("Lamperouge, Lelouch", top.Top.First().Name); Assert.Equal("ルルーシュ・ランペルージ", top.Top.First().NameKanji); Assert.Equal(417, top.Top.First().MalId); Assert.True(top.Top.First().Favorites > 85000); }
public async Task GetCharactersTop_NoParameters_ShouldParseLelouchLamperouge() { CharactersTop top = await jikan.GetCharactersTop(); Assert.Equal("Lamperouge, Lelouch", top.Top.First().Name); Assert.Equal("ルルーシュ・ランペルージ", top.Top.First().NameKanji); Assert.Equal(417, top.Top.First().MalId); Assert.True(top.Top.First().Favorites > 85000); }
public async Task GetCharactersTop_NoParameters_ShouldParseLelouchLamperouge() { // When var top = await _jikan.GetCharactersTop(); // Then var lelouch = top.Top.First(); using (new AssertionScope()) { lelouch.Name.Should().Be("Lamperouge, Lelouch"); lelouch.NameKanji.Should().Be("ルルーシュ・ランペルージ"); lelouch.MalId.Should().Be(417); lelouch.Favorites.Should().BeGreaterThan(85000); } }