1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 00:59:35 +08:00
osu-lazer/osu.Game.Tests/Visual/Multiplayer/TestSceneMatchHeader.cs

53 lines
1.5 KiB
C#
Raw Normal View History

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
2018-12-20 14:17:33 +08:00
2020-12-18 13:58:58 +08:00
using NUnit.Framework;
2018-12-20 14:17:33 +08:00
using osu.Game.Beatmaps;
2020-12-25 12:38:11 +08:00
using osu.Game.Online.Rooms;
2018-12-20 14:17:33 +08:00
using osu.Game.Rulesets.Osu;
using osu.Game.Rulesets.Osu.Mods;
using osu.Game.Screens.OnlinePlay.Match.Components;
2020-02-14 19:07:52 +08:00
using osu.Game.Users;
2018-12-20 14:17:33 +08:00
2019-03-25 00:02:36 +08:00
namespace osu.Game.Tests.Visual.Multiplayer
2018-12-20 14:17:33 +08:00
{
public class TestSceneMatchHeader : RoomTestScene
2018-12-20 14:17:33 +08:00
{
public TestSceneMatchHeader()
2018-12-20 14:17:33 +08:00
{
2020-12-18 13:58:58 +08:00
Child = new Header();
}
[SetUp]
public new void Setup() => Schedule(() =>
{
2019-02-05 18:00:01 +08:00
Room.Playlist.Add(new PlaylistItem
2018-12-20 14:17:33 +08:00
{
Beatmap =
2018-12-20 14:17:33 +08:00
{
Value = new BeatmapInfo
2018-12-22 13:12:27 +08:00
{
Metadata = new BeatmapMetadata
{
Title = "Title",
Artist = "Artist",
AuthorString = "Author",
},
Version = "Version",
Ruleset = new OsuRuleset().RulesetInfo
}
2018-12-20 14:17:33 +08:00
},
2018-12-22 13:12:27 +08:00
RequiredMods =
{
new OsuModDoubleTime(),
new OsuModNoFail(),
new OsuModRelax(),
}
});
2018-12-20 14:17:33 +08:00
2020-02-14 19:07:52 +08:00
Room.Name.Value = "A very awesome room";
Room.Host.Value = new User { Id = 2, Username = "peppy" };
2020-12-18 13:58:58 +08:00
});
2018-12-20 14:17:33 +08:00
}
}