mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:17:26 +08:00
Add further test coverage against paths with extensions
This commit is contained in:
parent
f0698937b7
commit
5b29ddd2ed
@ -83,6 +83,20 @@ namespace osu.Game.Tests.NonVisual.Skinning
|
|||||||
"followpoint.png",
|
"followpoint.png",
|
||||||
"followpoint@2x.png", 2
|
"followpoint@2x.png", 2
|
||||||
},
|
},
|
||||||
|
new object[]
|
||||||
|
{
|
||||||
|
// Looking up a path with extension specified should work.
|
||||||
|
new[] { "Gameplay/osu/followpoint.png" },
|
||||||
|
"Gameplay/osu/followpoint.png",
|
||||||
|
"Gameplay/osu/followpoint.png", 1
|
||||||
|
},
|
||||||
|
new object[]
|
||||||
|
{
|
||||||
|
// Looking up a path with extension specified should also work with @2x sprites.
|
||||||
|
new[] { "Gameplay/osu/followpoint@2x.png" },
|
||||||
|
"Gameplay/osu/followpoint.png",
|
||||||
|
"Gameplay/osu/followpoint@2x.png", 2
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
[TestCaseSource(nameof(fallbackTestCases))]
|
[TestCaseSource(nameof(fallbackTestCases))]
|
||||||
|
Loading…
Reference in New Issue
Block a user