mirror of https://github.com/ppy/osu
Add test coverage for both teams winning
This commit is contained in:
parent
f06f13215b
commit
d9190607e4
|
@ -15,8 +15,9 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||||
{
|
{
|
||||||
public class TestSceneMultiplayerTeamResults : ScreenTestScene
|
public class TestSceneMultiplayerTeamResults : ScreenTestScene
|
||||||
{
|
{
|
||||||
[Test]
|
[TestCase(7483253, 1048576)]
|
||||||
public void TestDisplayWithTeams()
|
[TestCase(1048576, 7483253)]
|
||||||
|
public void TestDisplayWithTeams(int team1Score, int team2Score)
|
||||||
{
|
{
|
||||||
MultiplayerResultsScreen screen = null;
|
MultiplayerResultsScreen screen = null;
|
||||||
|
|
||||||
|
@ -46,8 +47,8 @@ public void TestDisplayWithTeams()
|
||||||
|
|
||||||
SortedDictionary<int, BindableInt> teamScores = new SortedDictionary<int, BindableInt>
|
SortedDictionary<int, BindableInt> teamScores = new SortedDictionary<int, BindableInt>
|
||||||
{
|
{
|
||||||
{ 0, new BindableInt(7483253) },
|
{ 0, new BindableInt(team1Score) },
|
||||||
{ 1, new BindableInt(1048576) }
|
{ 1, new BindableInt(team2Score) }
|
||||||
};
|
};
|
||||||
|
|
||||||
Stack.Push(screen = new MultiplayerTeamResultsScreen(score, 1, playlistItem, teamScores));
|
Stack.Push(screen = new MultiplayerTeamResultsScreen(score, 1, playlistItem, teamScores));
|
||||||
|
|
Loading…
Reference in New Issue