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:
Naxess 2021-04-20 13:28:32 +02:00
parent 5262d94e21
commit 6a1e4ff99f
1 changed files with 6 additions and 1 deletions

View File

@ -5,6 +5,7 @@
using System.Linq;
using NUnit.Framework;
using osu.Game.Beatmaps;
using osu.Game.IO;
using osu.Game.Rulesets.Edit.Checks;
using osu.Game.Rulesets.Objects;
using osu.Game.Tests.Beatmaps;
@ -30,7 +31,11 @@ public void Setup()
{
Files = new List<BeatmapSetFileInfo>(new[]
{
new BeatmapSetFileInfo { Filename = "abc123.jpg" }
new BeatmapSetFileInfo
{
Filename = "abc123.jpg",
FileInfo = new FileInfo { Hash = "abcdef" }
}
})
}
}