mirror of
https://github.com/osukey/osukey.git
synced 2025-04-29 02:37:25 +09:00
Fix missing DummyRenderer
in skin resources tests
This commit is contained in:
parent
f1691882e2
commit
a8dee17513
@ -12,6 +12,7 @@ using osu.Framework.Audio.Sample;
|
|||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Extensions;
|
using osu.Framework.Extensions;
|
||||||
using osu.Framework.Extensions.ObjectExtensions;
|
using osu.Framework.Extensions.ObjectExtensions;
|
||||||
|
using osu.Framework.Graphics.Rendering.Dummy;
|
||||||
using osu.Framework.Graphics.Textures;
|
using osu.Framework.Graphics.Textures;
|
||||||
using osu.Framework.IO.Stores;
|
using osu.Framework.IO.Stores;
|
||||||
using osu.Framework.Testing;
|
using osu.Framework.Testing;
|
||||||
@ -54,6 +55,7 @@ namespace osu.Game.Tests.Skins
|
|||||||
lookedUpFileNames = new List<string>();
|
lookedUpFileNames = new List<string>();
|
||||||
mockResourceProvider = new Mock<IStorageResourceProvider>();
|
mockResourceProvider = new Mock<IStorageResourceProvider>();
|
||||||
mockResourceProvider.Setup(m => m.AudioManager).Returns(Audio);
|
mockResourceProvider.Setup(m => m.AudioManager).Returns(Audio);
|
||||||
|
mockResourceProvider.Setup(m => m.Renderer).Returns(new DummyRenderer());
|
||||||
mockResourceStore = new Mock<IResourceStore<byte[]>>();
|
mockResourceStore = new Mock<IResourceStore<byte[]>>();
|
||||||
mockResourceStore.Setup(r => r.Get(It.IsAny<string>()))
|
mockResourceStore.Setup(r => r.Get(It.IsAny<string>()))
|
||||||
.Callback<string>(n => lookedUpFileNames.Add(n))
|
.Callback<string>(n => lookedUpFileNames.Add(n))
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
// 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 osu.Framework.Audio;
|
using osu.Framework.Audio;
|
||||||
using osu.Framework.Graphics.Rendering;
|
using osu.Framework.Graphics.Rendering;
|
||||||
using osu.Framework.Graphics.Textures;
|
using osu.Framework.Graphics.Textures;
|
||||||
@ -21,7 +19,7 @@ namespace osu.Game.IO
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retrieve the game-wide audio manager.
|
/// Retrieve the game-wide audio manager.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
AudioManager AudioManager { get; }
|
AudioManager? AudioManager { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Access game-wide user files.
|
/// Access game-wide user files.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user