This commit is contained in:
cdwcgt
2022-11-27 10:44:06 +09:00
parent e16f8a4410
commit 54681217be

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