Add test coverage for both teams winning

This commit is contained in:
Bartłomiej Dach 2021-08-12 20:21:53 +02:00
parent f06f13215b
commit d9190607e4
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497
1 changed files with 5 additions and 4 deletions

View File

@ -15,8 +15,9 @@ namespace osu.Game.Tests.Visual.Multiplayer
{
public class TestSceneMultiplayerTeamResults : ScreenTestScene
{
[Test]
public void TestDisplayWithTeams()
[TestCase(7483253, 1048576)]
[TestCase(1048576, 7483253)]
public void TestDisplayWithTeams(int team1Score, int team2Score)
{
MultiplayerResultsScreen screen = null;
@ -46,8 +47,8 @@ public void TestDisplayWithTeams()
SortedDictionary<int, BindableInt> teamScores = new SortedDictionary<int, BindableInt>
{
{ 0, new BindableInt(7483253) },
{ 1, new BindableInt(1048576) }
{ 0, new BindableInt(team1Score) },
{ 1, new BindableInt(team2Score) }
};
Stack.Push(screen = new MultiplayerTeamResultsScreen(score, 1, playlistItem, teamScores));