1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00
osu-lazer/osu.Game.Tests/Visual/Menus/TestSceneIntroWelcome.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
899 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;
2020-08-21 14:50:14 +08:00
using osu.Framework.Utils;
2020-06-02 09:48:23 +08:00
using osu.Game.Screens.Menu;
namespace osu.Game.Tests.Visual.Menus
{
[TestFixture]
public partial class TestSceneIntroWelcome : IntroTestScene
2020-06-02 09:48:23 +08:00
{
protected override bool IntroReliesOnTrack => false;
protected override IntroScreen CreateScreen() => new IntroWelcome();
public override void TestPlayIntro()
{
base.TestPlayIntro();
AddUntilStep("wait for load", () => MusicController.TrackLoaded);
2020-08-21 14:50:14 +08:00
AddAssert("correct track", () => Precision.AlmostEquals(MusicController.CurrentTrack.Length, 48000, 1));
2020-08-07 19:51:56 +08:00
AddAssert("check if menu music loops", () => MusicController.CurrentTrack.Looping);
}
2020-06-02 09:48:23 +08:00
}
}