1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 12:02:54 +08:00
This commit is contained in:
cdwcgt 2022-11-27 10:44:06 +09:00
parent e16f8a4410
commit 54681217be
No known key found for this signature in database
GPG Key ID: 144396D01095C3A2

View File

@ -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