1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 16:52:55 +08:00

Fix tests not building.

This commit is contained in:
Lucas A 2020-11-08 14:38:59 +01:00
parent 48fce8c4b9
commit f1942fdb9c

View File

@ -26,7 +26,7 @@ namespace osu.Game.Tests.Visual.Online
[Test] [Test]
public void TestGenericActivity() public void TestGenericActivity()
{ {
AddStep("Set activity", () => API.Activity.Value = new UserActivity.InLobby()); AddStep("Set activity", () => API.Activity.Value = new UserActivity.InLobby(null));
AddStep("Run command", () => Add(new NowPlayingCommand())); AddStep("Run command", () => Add(new NowPlayingCommand()));
@ -57,7 +57,7 @@ namespace osu.Game.Tests.Visual.Online
[TestCase(false)] [TestCase(false)]
public void TestLinkPresence(bool hasOnlineId) public void TestLinkPresence(bool hasOnlineId)
{ {
AddStep("Set activity", () => API.Activity.Value = new UserActivity.InLobby()); AddStep("Set activity", () => API.Activity.Value = new UserActivity.InLobby(null));
AddStep("Set beatmap", () => Beatmap.Value = new DummyWorkingBeatmap(Audio, null) AddStep("Set beatmap", () => Beatmap.Value = new DummyWorkingBeatmap(Audio, null)
{ {