Fix overlined participants test scene not working

This commit is contained in:
smoogipoo 2020-12-18 15:07:39 +09:00
parent 208a9e596e
commit a4f7eb83c7

View File

@ -4,18 +4,25 @@
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Game.Screens.Multi.Components;
using osuTK;
using osu.Game.Users;
namespace osu.Game.Tests.Visual.Multiplayer
{
public class TestSceneOverlinedParticipants : MultiplayerTestScene
{
protected override bool UseOnlineAPI => true;
[SetUp]
public new void Setup() => Schedule(() =>
{
Room.RoomID.Value = 7;
for (int i = 0; i < 50; i++)
{
Room.RecentParticipants.Add(new User
{
Username = "peppy",
Id = 2
});
}
});
[Test]
@ -27,7 +34,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Width = 500,
Width = 0.2f,
};
});
}
@ -41,7 +48,8 @@ namespace osu.Game.Tests.Visual.Multiplayer
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Size = new Vector2(500)
Width = 0.2f,
Height = 0.2f,
};
});
}