mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 11:12:54 +08:00
Ensure there is at least one sample during rate assertion
This commit is contained in:
parent
cbb8dc2891
commit
a812ed4462
@ -83,9 +83,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
createPlayerTest(true);
|
||||
|
||||
AddAssert("sample playback rate matches mod rates", () => allStoryboardSamples.All(sound =>
|
||||
{
|
||||
return sound.ChildrenOfType<DrawableSample>().All(s => s.AggregateFrequency.Value == expectedRate);
|
||||
}));
|
||||
sound.ChildrenOfType<DrawableSample>().First().AggregateFrequency.Value == expectedRate));
|
||||
}
|
||||
|
||||
[TestCase(typeof(ModWindUp), 0.5, 2)]
|
||||
@ -113,9 +111,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
});
|
||||
|
||||
AddAssert("sample playback rate matches mod rates", () => allStoryboardSamples.All(sound =>
|
||||
{
|
||||
return sound.ChildrenOfType<DrawableSample>().All(s => s.AggregateFrequency.Value == gameplayMod.SpeedChange.Value);
|
||||
}));
|
||||
sound.ChildrenOfType<DrawableSample>().First().AggregateFrequency.Value == gameplayMod.SpeedChange.Value));
|
||||
}
|
||||
|
||||
private void createPlayerTest(bool skipIntro = false)
|
||||
|
Loading…
Reference in New Issue
Block a user