mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Add file hash to file presence test
Necessary because we now find the storage path of the file rather than just the file itself.
This commit is contained in:
@ -5,6 +5,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
|
using osu.Game.IO;
|
||||||
using osu.Game.Rulesets.Edit.Checks;
|
using osu.Game.Rulesets.Edit.Checks;
|
||||||
using osu.Game.Rulesets.Objects;
|
using osu.Game.Rulesets.Objects;
|
||||||
using osu.Game.Tests.Beatmaps;
|
using osu.Game.Tests.Beatmaps;
|
||||||
@ -30,7 +31,11 @@ namespace osu.Game.Tests.Editing.Checks
|
|||||||
{
|
{
|
||||||
Files = new List<BeatmapSetFileInfo>(new[]
|
Files = new List<BeatmapSetFileInfo>(new[]
|
||||||
{
|
{
|
||||||
new BeatmapSetFileInfo { Filename = "abc123.jpg" }
|
new BeatmapSetFileInfo
|
||||||
|
{
|
||||||
|
Filename = "abc123.jpg",
|
||||||
|
FileInfo = new FileInfo { Hash = "abcdef" }
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user