mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Use TestWorkingBeatmap
instead of null in tests
Fixes the warning that #12801 will give.
This commit is contained in:
@ -12,6 +12,7 @@ using osu.Game.Rulesets.Mania.Objects;
|
|||||||
using osu.Game.Rulesets.Objects;
|
using osu.Game.Rulesets.Objects;
|
||||||
using osu.Game.Rulesets.Objects.Types;
|
using osu.Game.Rulesets.Objects.Types;
|
||||||
using osu.Game.Rulesets.Osu.Objects;
|
using osu.Game.Rulesets.Osu.Objects;
|
||||||
|
using osu.Game.Tests.Beatmaps;
|
||||||
|
|
||||||
namespace osu.Game.Tests.Editing.Checks
|
namespace osu.Game.Tests.Editing.Checks
|
||||||
{
|
{
|
||||||
@ -186,10 +187,8 @@ namespace osu.Game.Tests.Editing.Checks
|
|||||||
|
|
||||||
private BeatmapVerifierContext getContext(List<HitObject> hitobjects)
|
private BeatmapVerifierContext getContext(List<HitObject> hitobjects)
|
||||||
{
|
{
|
||||||
return new BeatmapVerifierContext(new Beatmap<HitObject>
|
var beatmap = new Beatmap<HitObject> { HitObjects = hitobjects };
|
||||||
{
|
return new BeatmapVerifierContext(beatmap, new TestWorkingBeatmap(beatmap));
|
||||||
HitObjects = hitobjects
|
|
||||||
}, null);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@ using osu.Game.Rulesets.Edit.Checks;
|
|||||||
using osu.Game.Rulesets.Objects;
|
using osu.Game.Rulesets.Objects;
|
||||||
using osu.Game.Rulesets.Objects.Types;
|
using osu.Game.Rulesets.Objects.Types;
|
||||||
using osu.Game.Rulesets.Osu.Objects;
|
using osu.Game.Rulesets.Osu.Objects;
|
||||||
|
using osu.Game.Tests.Beatmaps;
|
||||||
|
|
||||||
namespace osu.Game.Tests.Editing.Checks
|
namespace osu.Game.Tests.Editing.Checks
|
||||||
{
|
{
|
||||||
@ -146,11 +147,13 @@ namespace osu.Game.Tests.Editing.Checks
|
|||||||
|
|
||||||
private BeatmapVerifierContext getContext(List<HitObject> hitobjects)
|
private BeatmapVerifierContext getContext(List<HitObject> hitobjects)
|
||||||
{
|
{
|
||||||
return new BeatmapVerifierContext(new Beatmap<HitObject>
|
var beatmap = new Beatmap<HitObject>
|
||||||
{
|
{
|
||||||
ControlPointInfo = cpi,
|
ControlPointInfo = cpi,
|
||||||
HitObjects = hitobjects
|
HitObjects = hitobjects
|
||||||
}, null);
|
};
|
||||||
|
|
||||||
|
return new BeatmapVerifierContext(beatmap, new TestWorkingBeatmap(beatmap));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user