mirror of
https://github.com/osukey/osukey.git
synced 2025-04-29 02:37:25 +09:00
test: add coverage for Player{Avatar,Flag}
This commit is contained in:
parent
07bde4990d
commit
ddee6400df
BIN
osu.Game.Tests/Resources/Archives/modified-argon-20230305.osk
Normal file
BIN
osu.Game.Tests/Resources/Archives/modified-argon-20230305.osk
Normal file
Binary file not shown.
@ -9,6 +9,7 @@ using osu.Framework.Audio.Sample;
|
|||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Graphics.Textures;
|
using osu.Framework.Graphics.Textures;
|
||||||
using osu.Framework.IO.Stores;
|
using osu.Framework.IO.Stores;
|
||||||
|
using osu.Framework.Logging;
|
||||||
using osu.Game.Audio;
|
using osu.Game.Audio;
|
||||||
using osu.Game.IO;
|
using osu.Game.IO;
|
||||||
using osu.Game.IO.Archives;
|
using osu.Game.IO.Archives;
|
||||||
@ -48,7 +49,9 @@ namespace osu.Game.Tests.Skins
|
|||||||
// Covers BPM counter.
|
// Covers BPM counter.
|
||||||
"Archives/modified-default-20221205.osk",
|
"Archives/modified-default-20221205.osk",
|
||||||
// Covers judgement counter.
|
// Covers judgement counter.
|
||||||
"Archives/modified-default-20230117.osk"
|
"Archives/modified-default-20230117.osk",
|
||||||
|
// Covers player avatar and flag.
|
||||||
|
"Archives/modified-argon-20230305.osk",
|
||||||
};
|
};
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -61,6 +64,8 @@ namespace osu.Game.Tests.Skins
|
|||||||
|
|
||||||
foreach (string oskFile in available_skins)
|
foreach (string oskFile in available_skins)
|
||||||
{
|
{
|
||||||
|
Logger.Log($"Testing file {oskFile}...");
|
||||||
|
|
||||||
using (var stream = TestResources.OpenResource(oskFile))
|
using (var stream = TestResources.OpenResource(oskFile))
|
||||||
using (var storage = new ZipArchiveReader(stream))
|
using (var storage = new ZipArchiveReader(stream))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user