Fix weird edge case in `TestSceneIntroWelcome`

This commit is contained in:
Dean Herbert 2021-10-07 19:58:34 +09:00
parent 189358240d
commit b88d4f1913
2 changed files with 4 additions and 2 deletions

View File

@ -43,7 +43,7 @@ protected IntroTestScene()
}
[Test]
public void TestPlayIntro()
public virtual void TestPlayIntro()
{
AddStep("restart sequence", () =>
{

View File

@ -12,8 +12,10 @@ public class TestSceneIntroWelcome : IntroTestScene
{
protected override IntroScreen CreateScreen() => new IntroWelcome();
public TestSceneIntroWelcome()
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);