mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 12:02:54 +08:00
fix test
This commit is contained in:
parent
e16f8a4410
commit
54681217be
@ -81,11 +81,13 @@ namespace osu.Game.Tests.Visual.Online
|
||||
[Test]
|
||||
public void TestModPresence()
|
||||
{
|
||||
AddStep("Set activity", () => api.Activity.Value = new UserActivity.InSoloGame(new BeatmapInfo(), new RulesetInfo()));
|
||||
|
||||
AddStep("Add Hidden mod", () => SelectedMods.Value = new[] { Ruleset.Value.CreateInstance().CreateMod<ModHidden>() });
|
||||
|
||||
AddStep("Run command", () => Add(new NowPlayingCommand()));
|
||||
|
||||
AddAssert("Check mod is present", () => postTarget.LastMessage.Contains("+Hidden"));
|
||||
AddAssert("Check mod is present", () => postTarget.LastMessage.Contains("+HD"));
|
||||
}
|
||||
|
||||
public partial class PostTarget : Component, IChannelPostTarget
|
||||
|
Loading…
Reference in New Issue
Block a user