mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-13 11:20:31 +00:00
26 lines
857 B
C#
26 lines
857 B
C#
// 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.
|
|
|
|
using System.IO;
|
|
using System.Reflection;
|
|
using osu.Framework.Allocation;
|
|
using osu.Framework.IO.Stores;
|
|
using osu.Framework.Testing;
|
|
|
|
namespace osu.Framework.Tests.Visual
|
|
{
|
|
public abstract class FrameworkTestCase : TestCase
|
|
{
|
|
protected override ITestCaseTestRunner CreateRunner() => new FrameworkTestCaseTestRunner();
|
|
|
|
private class FrameworkTestCaseTestRunner : TestCaseTestRunner
|
|
{
|
|
[BackgroundDependencyLoader]
|
|
private void load()
|
|
{
|
|
Resources.AddStore(new NamespacedResourceStore<byte[]>(new DllResourceStore(Path.GetFileName(Assembly.GetExecutingAssembly().Location)), "Resources"));
|
|
}
|
|
}
|
|
}
|
|
}
|