From e078806af23dc9826fb0ecf03764e7ee1ff444b8 Mon Sep 17 00:00:00 2001 From: Hivie Date: Sat, 9 Aug 2025 12:45:38 +0100 Subject: [PATCH] use ctor directly instead --- .../Editor/Checks/CheckTaikoInconsistentSkipBarLineTest.cs | 4 ++-- .../Editing/Checks/CheckInconsistentMetadataTest.cs | 4 ++-- .../Checks/CheckInconsistentTimingControlPointsTest.cs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/osu.Game.Rulesets.Taiko.Tests/Editor/Checks/CheckTaikoInconsistentSkipBarLineTest.cs b/osu.Game.Rulesets.Taiko.Tests/Editor/Checks/CheckTaikoInconsistentSkipBarLineTest.cs index 088068af78..15703118cc 100644 --- a/osu.Game.Rulesets.Taiko.Tests/Editor/Checks/CheckTaikoInconsistentSkipBarLineTest.cs +++ b/osu.Game.Rulesets.Taiko.Tests/Editor/Checks/CheckTaikoInconsistentSkipBarLineTest.cs @@ -211,11 +211,11 @@ namespace osu.Game.Rulesets.Taiko.Tests.Editor.Checks private BeatmapVerifierContext createContextWithMultipleDifficulties(IBeatmap currentBeatmap, IBeatmap[] allDifficulties) { - return BeatmapVerifierContext.CreateWithBeatmapResolver( + return new BeatmapVerifierContext( currentBeatmap, new TestWorkingBeatmap(currentBeatmap), DifficultyRating.ExpertPlus, - beatmapInfo => allDifficulties.FirstOrDefault(b => b.BeatmapInfo.Equals(beatmapInfo)) + allDifficulties ); } } diff --git a/osu.Game.Tests/Editing/Checks/CheckInconsistentMetadataTest.cs b/osu.Game.Tests/Editing/Checks/CheckInconsistentMetadataTest.cs index f785d7371b..d457e078f4 100644 --- a/osu.Game.Tests/Editing/Checks/CheckInconsistentMetadataTest.cs +++ b/osu.Game.Tests/Editing/Checks/CheckInconsistentMetadataTest.cs @@ -206,11 +206,11 @@ namespace osu.Game.Tests.Editing.Checks private BeatmapVerifierContext createContextWithMultipleDifficulties(IBeatmap currentBeatmap, IBeatmap[] allDifficulties) { - return BeatmapVerifierContext.CreateWithBeatmapResolver( + return new BeatmapVerifierContext( currentBeatmap, new TestWorkingBeatmap(currentBeatmap), DifficultyRating.ExpertPlus, - beatmapInfo => allDifficulties.FirstOrDefault(b => b.BeatmapInfo.Equals(beatmapInfo)) + allDifficulties ); } } diff --git a/osu.Game.Tests/Editing/Checks/CheckInconsistentTimingControlPointsTest.cs b/osu.Game.Tests/Editing/Checks/CheckInconsistentTimingControlPointsTest.cs index 584859e2f0..209d736053 100644 --- a/osu.Game.Tests/Editing/Checks/CheckInconsistentTimingControlPointsTest.cs +++ b/osu.Game.Tests/Editing/Checks/CheckInconsistentTimingControlPointsTest.cs @@ -245,11 +245,11 @@ namespace osu.Game.Tests.Editing.Checks private BeatmapVerifierContext createContext(IBeatmap currentBeatmap, IBeatmap[] allDifficulties) { - return BeatmapVerifierContext.CreateWithBeatmapResolver( + return new BeatmapVerifierContext( currentBeatmap, new TestWorkingBeatmap(currentBeatmap), DifficultyRating.ExpertPlus, - beatmapInfo => allDifficulties.FirstOrDefault(b => b.BeatmapInfo.Equals(beatmapInfo)) + allDifficulties ); } }