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