示例#1
0
        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"));
        }
示例#2
0
        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));
        }
示例#3
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);
        }
示例#4
0
        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);
        }
示例#5
0
        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));
        }