Beispiel #1
0
        public async Task GetStaticMapsAsyncTest_WithLocale()
        {
            IRiotClient client  = new RiotClient();
            var         mapList = await client.GetStaticMapsAsync(Locale.en_PH);

            Assert.That(mapList.Data, Is.Not.Null.And.Not.Empty);
            Assert.That(mapList.Type, Is.Not.Null.And.Not.Empty);
            Assert.That(mapList.Version, Is.Not.Null.And.Not.Empty);
            var map = mapList.Data.Values.First();

            Assert.That(map.MapName, Is.Not.Null.And.Not.Empty);
        }
Beispiel #2
0
        public async Task GetStaticMapsAsyncTest()
        {
            IRiotClient client  = new RiotClient();
            var         mapList = await client.GetStaticMapsAsync();

            Assert.That(mapList.Data, Is.Not.Null.And.Not.Empty);
            Assert.That(mapList.Type, Is.Not.Null.And.Not.Empty);
            Assert.That(mapList.Version, Is.Not.Null.And.Not.Empty);
            var map = mapList.Data.Values.First();

            Assert.That(map.Image, Is.Not.Null);
            Assert.That(map.MapId, Is.GreaterThan(0));
            Assert.That(map.MapName, Is.Not.Null.And.Not.Empty);
            // The Riot API never seems to set this property. This line is commented so the test passes while we wait for Riot to fix it.
            //Assert.That(map.UnpurchasableItemList, Is.Not.Null.And.Not.Empty);
        }
Beispiel #3
0
        public async Task GetStaticMapsAsyncTest()
        {
            IRiotClient client = new RiotClient();
            var mapList = await client.GetStaticMapsAsync();

            Assert.That(mapList.Data, Is.Not.Null.And.Not.Empty);
            Assert.That(mapList.Type, Is.Not.Null.And.Not.Empty);
            Assert.That(mapList.Version, Is.Not.Null.And.Not.Empty);
            var map = mapList.Data.Values.First();
            Assert.That(map.Image, Is.Not.Null);
            Assert.That(map.MapId, Is.GreaterThan(0));
            Assert.That(map.MapName, Is.Not.Null.And.Not.Empty);
            // The Riot API never seems to set this property. This line is commented so the test passes while we wait for Riot to fix it.
            //Assert.That(map.UnpurchasableItemList, Is.Not.Null.And.Not.Empty);
        }