From 11cb9e72f5fb99f2afae40008cf24b59a27b4c13 Mon Sep 17 00:00:00 2001 From: minisbett <39670899+minisbett@users.noreply.github.com> Date: Mon, 18 Nov 2024 17:16:07 +0100 Subject: [PATCH] Fix beatmap attribute tests --- .../Visual/UserInterface/TestSceneBeatmapAttributeText.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game.Tests/Visual/UserInterface/TestSceneBeatmapAttributeText.cs b/osu.Game.Tests/Visual/UserInterface/TestSceneBeatmapAttributeText.cs index 58469d956f..206edbb58d 100644 --- a/osu.Game.Tests/Visual/UserInterface/TestSceneBeatmapAttributeText.cs +++ b/osu.Game.Tests/Visual/UserInterface/TestSceneBeatmapAttributeText.cs @@ -209,7 +209,7 @@ namespace osu.Game.Tests.Visual.UserInterface } protected override IDifficultyAttributes CreateDifficultyAttributes(IBeatmap beatmap, Mod[] mods, Skill[] skills, double clockRate) - => new EmptyDifficultyAttributes(); + => new EmptyDifficultyAttributes { StarRating = mods.OfType().SingleOrDefault()?.Difficulty.Value ?? 0 }; protected override IEnumerable CreateDifficultyHitObjects(IBeatmap beatmap, double clockRate) => Array.Empty(); @@ -226,7 +226,7 @@ namespace osu.Game.Tests.Visual.UserInterface } protected override IPerformanceAttributes CreatePerformanceAttributes(ScoreInfo score, IDifficultyAttributes attributes) - => new EmptyPerformanceAttributes(); + => new EmptyPerformanceAttributes() { Total = score.Mods.OfType().SingleOrDefault()?.Performance.Value ?? 0 }; } private class TestMod : Mod