From 6a1d118b21be6bb1f5c2cac38e6f9708c68b1bd6 Mon Sep 17 00:00:00 2001 From: Salman Ahmed Date: Fri, 16 Feb 2024 10:52:27 +0300 Subject: [PATCH] Adjust tests again --- .../Visual/Gameplay/TestScenePlayerLoader.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/osu.Game.Tests/Visual/Gameplay/TestScenePlayerLoader.cs b/osu.Game.Tests/Visual/Gameplay/TestScenePlayerLoader.cs index 702912ef45..6eb2532d45 100644 --- a/osu.Game.Tests/Visual/Gameplay/TestScenePlayerLoader.cs +++ b/osu.Game.Tests/Visual/Gameplay/TestScenePlayerLoader.cs @@ -264,13 +264,13 @@ namespace osu.Game.Tests.Visual.Gameplay } [Test] - public void TestMutedNotificationHighMasterVolume() + public void TestMutedNotificationLowMusicVolume() { addVolumeSteps("master and music volumes", () => { - audioManager.Volume.Value = 0.6; + audioManager.Volume.Value = 0.25; audioManager.VolumeTrack.Value = 0.01; - }, () => Precision.AlmostEquals(audioManager.Volume.Value, 0.6) && Precision.AlmostEquals(audioManager.VolumeTrack.Value, 0.83)); + }, () => Precision.AlmostEquals(audioManager.Volume.Value, 0.25) && Precision.AlmostEquals(audioManager.VolumeTrack.Value, 0.5)); } [Test] @@ -279,8 +279,8 @@ namespace osu.Game.Tests.Visual.Gameplay addVolumeSteps("master and music volumes", () => { audioManager.Volume.Value = 0.01; - audioManager.VolumeTrack.Value = 0.15; - }, () => Precision.AlmostEquals(audioManager.Volume.Value, 0.5) && Precision.AlmostEquals(audioManager.VolumeTrack.Value, 1)); + audioManager.VolumeTrack.Value = 0.25; + }, () => Precision.AlmostEquals(audioManager.Volume.Value, 0.5) && Precision.AlmostEquals(audioManager.VolumeTrack.Value, 0.25)); } [Test] @@ -289,10 +289,10 @@ namespace osu.Game.Tests.Visual.Gameplay addVolumeSteps("mute button", () => { // Importantly, in the case the volume is muted but the user has a volume level set, it should be retained. - audioManager.Volume.Value = 0.5f; - audioManager.VolumeTrack.Value = 0.5f; + audioManager.Volume.Value = 0.5; + audioManager.VolumeTrack.Value = 0.5; volumeOverlay.IsMuted.Value = true; - }, () => !volumeOverlay.IsMuted.Value && audioManager.Volume.Value == 0.5f && audioManager.VolumeTrack.Value == 0.5f); + }, () => !volumeOverlay.IsMuted.Value && audioManager.Volume.Value == 0.5 && audioManager.VolumeTrack.Value == 0.5); } ///