mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 19:52:58 +08:00
47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
|
// 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.
|
||
|
|
||
|
using System.Linq;
|
||
|
using NUnit.Framework;
|
||
|
using osu.Framework.Allocation;
|
||
|
using osu.Framework.Testing;
|
||
|
using osu.Game.Beatmaps;
|
||
|
using osu.Game.Database;
|
||
|
using osu.Game.Screens.Menu;
|
||
|
|
||
|
namespace osu.Game.Tests.Visual.Menus
|
||
|
{
|
||
|
public partial class TestSceneMainMenuSeasonalLighting : OsuTestScene
|
||
|
{
|
||
|
[Resolved]
|
||
|
private BeatmapManager beatmaps { get; set; } = null!;
|
||
|
|
||
|
[Resolved]
|
||
|
private RealmAccess realm { get; set; } = null!;
|
||
|
|
||
|
[SetUpSteps]
|
||
|
public void SetUpSteps()
|
||
|
{
|
||
|
AddStep("prepare beatmap", () =>
|
||
|
{
|
||
|
var setInfo = beatmaps.QueryBeatmapSet(b => b.Protected && b.Hash == "7e26183e72a496f672c3a21292e6b469fdecd084d31c259ea10a31df5b46cd77");
|
||
|
|
||
|
Beatmap.Value = beatmaps.GetWorkingBeatmap(setInfo!.Value.Beatmaps.First());
|
||
|
});
|
||
|
|
||
|
AddStep("create lighting", () => Child = new MainMenuSeasonalLighting());
|
||
|
|
||
|
AddStep("restart beatmap", () =>
|
||
|
{
|
||
|
Beatmap.Value.Track.Start();
|
||
|
Beatmap.Value.Track.Seek(4000);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
[Test]
|
||
|
public void TestBasic()
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
}
|