|
|
|
@ -146,6 +146,11 @@ void main() {
|
|
|
|
|
'packages/pinball_audio/assets/sfx/io_pinball_voice_over.mp3',
|
|
|
|
|
),
|
|
|
|
|
).called(1);
|
|
|
|
|
verify(
|
|
|
|
|
() => preCacheSingleAudio.onCall(
|
|
|
|
|
'packages/pinball_audio/assets/sfx/game_over_voice_over.mp3',
|
|
|
|
|
),
|
|
|
|
|
).called(1);
|
|
|
|
|
verify(
|
|
|
|
|
() => preCacheSingleAudio
|
|
|
|
|
.onCall('packages/pinball_audio/assets/music/background.mp3'),
|
|
|
|
@ -227,6 +232,19 @@ void main() {
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
group('gameOverVoiceOver', () {
|
|
|
|
|
test('plays the correct file', () async {
|
|
|
|
|
await audio.load();
|
|
|
|
|
audio.gameOverVoiceOver();
|
|
|
|
|
|
|
|
|
|
verify(
|
|
|
|
|
() => playSingleAudio.onCall(
|
|
|
|
|
'packages/pinball_audio/${Assets.sfx.gameOverVoiceOver}',
|
|
|
|
|
),
|
|
|
|
|
).called(1);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
group('backgroundMusic', () {
|
|
|
|
|
test('plays the correct file', () async {
|
|
|
|
|
await Future.wait(player.load());
|
|
|
|
|