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"); }
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"); }
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"); }
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."); }