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;
|
2020-07-01 18:02:05 +08:00
|
|
|
|
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]
|
2020-06-03 03:06:22 +08:00
|
|
|
|
public class TestSceneIntroWelcome : IntroTestScene
|
2020-06-02 09:48:23 +08:00
|
|
|
|
{
|
2020-06-03 03:06:22 +08:00
|
|
|
|
protected override IScreen CreateScreen() => new IntroWelcome();
|
2020-06-29 08:16:19 +08:00
|
|
|
|
|
|
|
|
|
public TestSceneIntroWelcome()
|
|
|
|
|
{
|
2020-07-01 18:02:05 +08:00
|
|
|
|
AddUntilStep("wait for load", () => getTrack() != null);
|
2020-06-29 08:16:19 +08:00
|
|
|
|
|
2020-07-01 18:02:05 +08:00
|
|
|
|
AddAssert("check if menu music loops", () => getTrack().Looping);
|
2020-06-29 08:16:19 +08:00
|
|
|
|
}
|
2020-07-01 18:02:05 +08:00
|
|
|
|
|
|
|
|
|
private Track getTrack() => (IntroStack?.CurrentScreen as MainMenu)?.Track;
|
2020-06-02 09:48:23 +08:00
|
|
|
|
}
|
|
|
|
|
}
|