mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 20:23:00 +08:00
Fix failing test
This commit is contained in:
parent
561fff801a
commit
8413247773
@ -372,7 +372,7 @@ namespace osu.Game.Rulesets.Taiko.Tests
|
|||||||
|
|
||||||
private void checkSamples(HitType hitType, string expectedSamplesCsv, string expectedBank)
|
private void checkSamples(HitType hitType, string expectedSamplesCsv, string expectedBank)
|
||||||
{
|
{
|
||||||
AddStep($"hit {hitType}", () => triggerSource.Play(hitType));
|
AddStep($"hit {hitType}", () => triggerSource.Play(hitType, false));
|
||||||
AddAssert($"last played sample is {expectedSamplesCsv}", () => string.Join(',', triggerSource.LastPlayedSamples!.OfType<HitSampleInfo>().Select(s => s.Name)),
|
AddAssert($"last played sample is {expectedSamplesCsv}", () => string.Join(',', triggerSource.LastPlayedSamples!.OfType<HitSampleInfo>().Select(s => s.Name)),
|
||||||
() => Is.EqualTo(expectedSamplesCsv));
|
() => Is.EqualTo(expectedSamplesCsv));
|
||||||
AddAssert($"last played sample has {expectedBank} bank", () => triggerSource.LastPlayedSamples!.OfType<HitSampleInfo>().First().Bank, () => Is.EqualTo(expectedBank));
|
AddAssert($"last played sample has {expectedBank} bank", () => triggerSource.LastPlayedSamples!.OfType<HitSampleInfo>().First().Bank, () => Is.EqualTo(expectedBank));
|
||||||
|
Loading…
Reference in New Issue
Block a user