mirror of
https://github.com/osukey/osukey.git
synced 2025-05-05 05:37:18 +09:00
Bring test scene structure up-to-date
This commit is contained in:
parent
00edc7e66f
commit
7f0a134bc8
@ -4,6 +4,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using NUnit.Framework;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
@ -27,11 +28,11 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
[Cached(Type = typeof(IRoomManager))]
|
[Cached(Type = typeof(IRoomManager))]
|
||||||
private TestRoomManager roomManager = new TestRoomManager();
|
private TestRoomManager roomManager = new TestRoomManager();
|
||||||
|
|
||||||
|
private RoomsContainer container;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
RoomsContainer container;
|
|
||||||
|
|
||||||
Child = container = new RoomsContainer
|
Child = container = new RoomsContainer
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
@ -39,9 +40,18 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
Width = 0.5f,
|
Width = 0.5f,
|
||||||
JoinRequested = joinRequested
|
JoinRequested = joinRequested
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SetUpSteps()
|
||||||
|
{
|
||||||
|
base.SetUpSteps();
|
||||||
|
|
||||||
AddStep("clear rooms", () => roomManager.Rooms.Clear());
|
AddStep("clear rooms", () => roomManager.Rooms.Clear());
|
||||||
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestBasicListChanges()
|
||||||
|
{
|
||||||
AddStep("add rooms", () =>
|
AddStep("add rooms", () =>
|
||||||
{
|
{
|
||||||
for (int i = 0; i < 3; i++)
|
for (int i = 0; i < 3; i++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user