예제 #1
0
        public async Task GetReformCard()
        {
            LeagueClientException exception = null;

            try
            {
                var obj = await client.PlayerBehavior.GetReformCard();
            }
            catch (LeagueClientException ex)
            {
                exception = ex;
            }

            Assert.IsTrue(exception.Message == "Not found");
        }
예제 #2
0
        public async Task SetCurrentPageInvalid()
        {
            LeagueClientException exception = null;

            try
            {
                var obj = await client.Perks.SetCurrentPage(5);
            }
            catch (LeagueClientException ex)
            {
                exception = ex;
            }

            Assert.IsTrue(exception.Message == "Perk page not found");
        }
예제 #3
0
        public async Task GetSessionNotInChampSelect()
        {
            LeagueClientException exception = null;

            try
            {
                var obj = await client.ChampSelect.GetSession();
            }
            catch (LeagueClientException ex)
            {
                exception = ex;
            }

            Assert.IsTrue(exception != null);
            Assert.IsTrue(exception.Message == "No active delegate");
        }
예제 #4
0
        public async Task GetSessionNoLogin()
        {
            LeagueClientException exception = null;

            try
            {
                var obj = await client.Login.GetSession();
            }
            catch (LeagueClientException ex)
            {
                exception = ex;
            }

            if (exception == null)
            {
                Assert.Inconclusive("It looks like you are currently logged in.");
            }

            Assert.IsTrue(exception.Message == "No session currently exists, you must initiate a login first.");
        }