Fix test failures and general discrepancies

This commit is contained in:
smoogipoo
2021-01-20 14:05:35 +09:00
parent bdb9d4f7d0
commit 8ffbcc9860
5 changed files with 28 additions and 15 deletions

View File

@ -43,7 +43,11 @@ namespace osu.Game.Tests.Visual.Gameplay
[Test]
public void TestStoppedSoundDoesntResumeAfterPause()
{
AddStep("start sample with looping", () => skinnableSound.Looping = true);
AddStep("start sample with looping", () =>
{
skinnableSound.Looping = true;
skinnableSound.Play();
});
AddUntilStep("wait for sample to start playing", () => skinnableSound.IsPlaying);
@ -62,7 +66,11 @@ namespace osu.Game.Tests.Visual.Gameplay
[Test]
public void TestLoopingSoundResumesAfterPause()
{
AddStep("start sample with looping", () => skinnableSound.Looping = true);
AddStep("start sample with looping", () =>
{
skinnableSound.Looping = true;
skinnableSound.Play();
});
AddUntilStep("wait for sample to start playing", () => skinnableSound.IsPlaying);