mirror of
https://github.com/ppy/osu
synced 2025-02-08 22:27:14 +00:00
Fix test failure due to triangle skin no longer being null intests
This commit is contained in:
parent
6a06a5b1b5
commit
2b1c5b2c4a
@ -1,12 +1,11 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Game.Rulesets;
|
using osu.Game.Rulesets;
|
||||||
using osu.Game.Rulesets.Osu;
|
using osu.Game.Rulesets.Osu;
|
||||||
|
using osu.Game.Skinning;
|
||||||
|
|
||||||
namespace osu.Game.Tests.Visual.Gameplay
|
namespace osu.Game.Tests.Visual.Gameplay
|
||||||
{
|
{
|
||||||
@ -19,7 +18,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
{
|
{
|
||||||
SetContents(skin =>
|
SetContents(skin =>
|
||||||
{
|
{
|
||||||
var implementation = skin != null
|
var implementation = skin is not TrianglesSkin
|
||||||
? CreateLegacyImplementation()
|
? CreateLegacyImplementation()
|
||||||
: CreateDefaultImplementation();
|
: CreateDefaultImplementation();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user