mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 23:12:56 +08:00
Add test for recommending current ruleset
This commit is contained in:
parent
49be4978bd
commit
e792f07084
@ -100,6 +100,24 @@ namespace osu.Game.Tests.Visual.SongSelect
|
||||
presentAndConfirm(() => beatmapSets[3], 2);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestCurrentRulesetIsRecommended()
|
||||
{
|
||||
BeatmapSetInfo catchSet = null, mixedSet = null;
|
||||
|
||||
AddStep("create catch beatmapset", () => catchSet = importBeatmapSet(0, new[] { new CatchRuleset().RulesetInfo }));
|
||||
AddStep("create mixed beatmapset", () => mixedSet = importBeatmapSet(1,
|
||||
new[] { new TaikoRuleset().RulesetInfo, new CatchRuleset().RulesetInfo, new ManiaRuleset().RulesetInfo }));
|
||||
|
||||
AddAssert("all sets imported", () => ensureAllBeatmapSetsImported(new[] { catchSet, mixedSet }));
|
||||
|
||||
// Switch to catch
|
||||
presentAndConfirm(() => catchSet, 1);
|
||||
|
||||
// Present mixed difficulty set, expect current ruleset to be selected
|
||||
presentAndConfirm(() => mixedSet, 2);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestBestRulesetIsRecommended()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user