mirror of
https://github.com/ppy/osu.git
synced 2024-11-09 09:20:05 +08:00
28 lines
918 B
C#
28 lines
918 B
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.
|
|
|
|
#nullable disable
|
|
|
|
using NUnit.Framework;
|
|
using osu.Framework.Utils;
|
|
using osu.Game.Screens.Menu;
|
|
|
|
namespace osu.Game.Tests.Visual.Menus
|
|
{
|
|
[TestFixture]
|
|
public partial class TestSceneIntroWelcome : IntroTestScene
|
|
{
|
|
protected override bool IntroReliesOnTrack => false;
|
|
protected override IntroScreen CreateScreen() => new IntroWelcome();
|
|
|
|
public override void TestPlayIntro()
|
|
{
|
|
base.TestPlayIntro();
|
|
|
|
AddUntilStep("wait for load", () => MusicController.TrackLoaded);
|
|
AddAssert("correct track", () => Precision.AlmostEquals(MusicController.CurrentTrack.Length, 48000, 1));
|
|
AddAssert("check if menu music loops", () => MusicController.CurrentTrack.Looping);
|
|
}
|
|
}
|
|
}
|