1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Fix test failing after BDL -> [Test] change

This commit is contained in:
Bartłomiej Dach 2021-08-28 09:44:54 +02:00
parent b008a86d8c
commit d37df6afec
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -13,16 +13,19 @@ namespace osu.Game.Tournament.Tests.Screens
[Test]
public void TestBasic()
{
var match = Ladder.CurrentMatch.Value;
AddStep("set up match", () =>
{
var match = Ladder.CurrentMatch.Value;
match.Round.Value = Ladder.Rounds.FirstOrDefault(g => g.Name.Value == "Finals");
match.Completed.Value = true;
match.Round.Value = Ladder.Rounds.FirstOrDefault(g => g.Name.Value == "Finals");
match.Completed.Value = true;
});
Add(new TeamWinScreen
AddStep("create screen", () => Add(new TeamWinScreen
{
FillMode = FillMode.Fit,
FillAspectRatio = 16 / 9f
});
}));
}
}
}