1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-23 06:13:03 +08:00

Simplify test scene setup

This commit is contained in:
Andrei Zavatski 2020-03-04 00:15:10 +03:00
parent 83dad93b6d
commit 06b23b626e

View File

@ -30,15 +30,11 @@ namespace osu.Game.Tests.Visual.UserInterface
private FriendsOnlineStatusControl control; private FriendsOnlineStatusControl control;
[SetUp] [SetUp]
public void SetUp() => Schedule(() => public void SetUp() => Schedule(() => Child = control = new FriendsOnlineStatusControl
{
Clear();
Add(control = new FriendsOnlineStatusControl
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,
}); });
});
[Test] [Test]
public void Populate() public void Populate()