1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-17 16:42:53 +08:00
osu-lazer/osu.Game.Tournament.Tests/TestCaseLadderManager.cs

38 lines
1.0 KiB
C#
Raw Normal View History

// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
2018-09-21 18:58:47 +08:00
using osu.Framework.Graphics;
using osu.Game.Graphics.Cursor;
2018-09-21 17:51:37 +08:00
using osu.Game.Tournament.Screens.Ladder;
namespace osu.Game.Tournament.Tests
{
public class TestCaseLadderManager : LadderTestCase
{
private LadderManager manager;
[BackgroundDependencyLoader]
private void load()
{
Add(new OsuContextMenuContainer
2018-09-21 18:58:47 +08:00
{
RelativeSizeAxes = Axes.Both,
2018-11-08 05:29:04 +08:00
Child = manager = new LadderManager()
});
}
2018-11-06 16:59:01 +08:00
protected override void Dispose(bool isDisposing)
{
2018-11-06 16:59:01 +08:00
base.Dispose(isDisposing);
2018-11-06 17:32:59 +08:00
var newInfo = manager.CreateInfo();
Ladder.Teams = newInfo.Teams;
Ladder.Groupings = newInfo.Groupings;
Ladder.Pairings = newInfo.Pairings;
Ladder.Progressions = newInfo.Progressions;
}
}
}