public async Task GetStaticMasteryByIdAsyncTest_WithLocale() { IRiotClient client = new RiotClient(); var mastery = await client.GetStaticMasteryByIdAsync(6121, Locale.es_AR); Assert.That(mastery, Is.Not.Null); Assert.That(mastery.Name, Is.EqualTo("Sangre Fresca")); }
public async Task GetStaticMasteryByIdAsyncTest() { IRiotClient client = new RiotClient(); var mastery = await client.GetStaticMasteryByIdAsync(6121, tags : new[] { "all" }); Assert.That(mastery, Is.Not.Null); Assert.That(mastery.Ranks, Is.GreaterThan(0)); }
public async Task GetStaticMasteryByIdAsyncTest_WithSelectedFields() { IRiotClient client = new RiotClient(); var mastery = await client.GetStaticMasteryByIdAsync(6121, tags : new[] { nameof(StaticMastery.MasteryTree), nameof(StaticMastery.Ranks), }); Assert.That(mastery.MasteryTree != MastertyTreeType.Resolve); Assert.That(mastery.Ranks, Is.GreaterThan(0)); Assert.That(mastery.SanitizedDescription, Is.Null.Or.Empty); }
public async Task GetStaticMasteryByIdAsyncTest_WithSelectedFields() { IRiotClient client = new RiotClient(); var mastery = await client.GetStaticMasteryByIdAsync(6121, masteryData: new[] { "MasteryTree", "Ranks" }); Assert.That(mastery.MasteryTree != MastertyTreeType.Resolve); Assert.That(mastery.Ranks, Is.GreaterThan(0)); Assert.That(mastery.SanitizedDescription, Is.Null.Or.Empty); }
public async Task GetStaticMasteryByIdAsyncTest() { IRiotClient client = new RiotClient(); var mastery = await client.GetStaticMasteryByIdAsync(6121, masteryData: new[] { "all" }); Assert.That(mastery, Is.Not.Null); Assert.That(mastery.Ranks, Is.GreaterThan(0)); }