1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-23 12:07:25 +08:00
osu-lazer/osu.Game.Tests/Visual/TestCaseMatch.cs

56 lines
1.9 KiB
C#
Raw Normal View History

2018-05-29 08:01:56 +08:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
2018-05-29 12:51:04 +08:00
using osu.Framework.Allocation;
2018-05-29 09:11:01 +08:00
using osu.Game.Beatmaps;
2018-05-29 08:01:56 +08:00
using osu.Game.Online.Multiplayer;
2018-05-29 12:51:04 +08:00
using osu.Game.Rulesets;
2018-05-29 08:01:56 +08:00
using osu.Game.Screens.Multi.Screens.Match;
namespace osu.Game.Tests.Visual
{
public class TestCaseMatch : OsuTestCase
{
2018-05-29 12:51:04 +08:00
[BackgroundDependencyLoader]
private void load(RulesetStore rulesets)
2018-05-29 08:01:56 +08:00
{
Room room = new Room
{
2018-05-29 12:51:04 +08:00
Name = { Value = @"One Awesome Room" },
Status = { Value = new RoomStatusOpen() },
Availability = { Value = RoomAvailability.Public },
Type = { Value = new GameTypeTeamVersus() },
2018-05-29 09:11:01 +08:00
Beatmap =
{
Value = new BeatmapInfo
{
2018-05-29 12:51:04 +08:00
StarDifficulty = 5.02,
Ruleset = rulesets.GetRuleset(1),
Metadata = new BeatmapMetadata
{
Title = @"Paradigm Shift",
Artist = @"Morimori Atsushi",
AuthorString = @"eiri-",
},
2018-05-29 09:11:01 +08:00
BeatmapSet = new BeatmapSetInfo
{
OnlineInfo = new BeatmapSetOnlineInfo
{
Covers = new BeatmapSetOnlineCovers
{
Cover = @"https://assets.ppy.sh/beatmaps/765055/covers/cover.jpg?1526955337",
},
},
},
},
},
2018-05-29 08:01:56 +08:00
};
Match match = new Match(room);
AddStep(@"show", () => Add(match));
AddStep(@"exit", match.Exit);
}
}
}