mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:23:22 +08:00
Inline parameterised test case
This commit is contained in:
parent
0089cdb0ca
commit
ea02571da9
@ -14,15 +14,15 @@ namespace osu.Game.Rulesets.Osu.Tests.Mods
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Ensures that a final volume combo of 0 (i.e. "always muted" mode) constantly plays metronome and completely mutes track.
|
/// Ensures that a final volume combo of 0 (i.e. "always muted" mode) constantly plays metronome and completely mutes track.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[TestCase(0.0, 1.0)]
|
[Test]
|
||||||
public void TestZeroFinalCombo(double expectedTrackVolume, double expectedMetronomeVolume) => CreateModTest(new ModTestData
|
public void TestZeroFinalCombo() => CreateModTest(new ModTestData
|
||||||
{
|
{
|
||||||
Mod = new OsuModMuted
|
Mod = new OsuModMuted
|
||||||
{
|
{
|
||||||
MuteComboCount = { Value = 0 },
|
MuteComboCount = { Value = 0 },
|
||||||
},
|
},
|
||||||
PassCondition = () => Beatmap.Value.Track.AggregateVolume.Value == expectedTrackVolume &&
|
PassCondition = () => Beatmap.Value.Track.AggregateVolume.Value == 0.0 &&
|
||||||
Player.ChildrenOfType<Metronome>().SingleOrDefault()?.AggregateVolume.Value == expectedMetronomeVolume,
|
Player.ChildrenOfType<Metronome>().SingleOrDefault()?.AggregateVolume.Value == 1.0,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user