mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Add helper method to make direct casts be used
This commit is contained in:
@ -95,6 +95,25 @@ namespace osu.Game.Tests.Skins
|
||||
AddAssert("Check combo colours", () => requester.GetConfig<GlobalSkinConfiguration, List<Color4>>(GlobalSkinConfiguration.ComboColours)?.Value?.Count > 0);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestWrongColourType()
|
||||
{
|
||||
AddStep("Add config colour", () => { source1.Configuration.CustomColours["Lookup"] = Color4.Red; });
|
||||
|
||||
AddAssert("perform incorrect lookup", () =>
|
||||
{
|
||||
try
|
||||
{
|
||||
requester.GetConfig<SkinCustomColourLookup, int>(new SkinCustomColourLookup("Lookup"));
|
||||
return false;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public enum LookupType
|
||||
{
|
||||
Test
|
||||
|
Reference in New Issue
Block a user