Skip to content

Commit

Permalink
Ignore broken GetScore tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MingweiSamuel committed Oct 17, 2023
1 parent 9fe4521 commit 0d2c88f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 19 additions & 1 deletion tests/Camille.RiotGames.Test/ApiChampionMasteryV4Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,34 @@ public static void CheckGetChampions(ChampionMastery[] champData)
}

[TestMethod]
[Ignore]
public void GetScore()
{
// http://www.lolking.net/summoner/euw/20401158/0#champ-mastery
CheckGetScore(Api.ChampionMasteryV4().GetChampionMasteryScore(PlatformRoute.EUW1, SummonerIdMa5tery));
}

[TestMethod]
[Ignore]
public async Task GetScoreAsync()
{
CheckGetScore(await Api.ChampionMasteryV4().GetChampionMasteryScoreAsync(PlatformRoute.EUW1, SummonerIdMa5tery));
var summoner = await Api.SummonerV4().GetBySummonerNameAsync(PlatformRoute.EUW1, "Ma5tery");
CheckGetScore(await Api.ChampionMasteryV4().GetChampionMasteryScoreAsync(PlatformRoute.EUW1, summoner.Puuid));
}

[TestMethod]
[Ignore]
public void GetScoreByPUUID()
{
var summoner = Api.SummonerV4().GetBySummonerName(PlatformRoute.EUW1, "Ma5tery");
CheckGetScore(Api.ChampionMasteryV4().GetChampionMasteryScoreByPUUID(PlatformRoute.EUW1, summoner.Puuid));
}

[TestMethod]
[Ignore]
public async Task GetScoreByPUUIDAsync()
{
CheckGetScore(await Api.ChampionMasteryV4().GetChampionMasteryScoreByPUUIDAsync(PlatformRoute.EUW1, SummonerIdMa5tery));
}

public static void CheckGetScore(int score)
Expand Down
2 changes: 2 additions & 0 deletions tests/Camille.RiotGames.Test/ApiMatchV5Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public class ApiMatchV5Test : ApiTest
"EUW1_6568707352",
"EUW1_6568635198",
"EUW1_6568537080",
// https://github.com/MingweiSamuel/Camille/issues/99
"EUW1_6511808246",
};

[TestMethod]
Expand Down

0 comments on commit 0d2c88f

Please sign in to comment.