1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-08 00:37:40 +08:00
osu-lazer/osu.Game.Tests/Visual/Menus/TestSceneIntroWelcome.cs

26 lines
762 B
C#
Raw Normal View History

2020-06-02 09:48:23 +08:00
// 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 NUnit.Framework;
using osu.Framework.Audio.Track;
2020-06-02 09:48:23 +08:00
using osu.Framework.Screens;
using osu.Game.Screens.Menu;
namespace osu.Game.Tests.Visual.Menus
{
[TestFixture]
public class TestSceneIntroWelcome : IntroTestScene
2020-06-02 09:48:23 +08:00
{
protected override IScreen CreateScreen() => new IntroWelcome();
public TestSceneIntroWelcome()
{
AddUntilStep("wait for load", () => getTrack() != null);
AddAssert("check if menu music loops", () => getTrack().Looping);
}
private Track getTrack() => (IntroStack?.CurrentScreen as MainMenu)?.Track;
2020-06-02 09:48:23 +08:00
}
}