1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-21 23:03:07 +08:00
osu-lazer/osu.Game.Tests/Visual/TestCaseOsuGame.cs

42 lines
1.0 KiB
C#
Raw Normal View History

// 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.
2018-04-13 17:19:50 +08:00
using System;
using System.Collections.Generic;
using NUnit.Framework;
2019-02-26 17:02:24 +08:00
using osu.Framework.Allocation;
2018-04-13 17:19:50 +08:00
using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;
2019-02-26 17:02:24 +08:00
using osu.Framework.Platform;
2018-04-13 17:19:50 +08:00
using osu.Game.Screens.Menu;
2018-11-20 15:51:59 +08:00
using osuTK.Graphics;
2018-04-13 17:19:50 +08:00
namespace osu.Game.Tests.Visual
{
[TestFixture]
public class TestCaseOsuGame : OsuTestCase
{
public override IReadOnlyList<Type> RequiredTypes => new[]
{
typeof(OsuLogo),
};
2019-02-26 17:02:24 +08:00
[BackgroundDependencyLoader]
private void load(GameHost host)
2018-04-13 17:19:50 +08:00
{
2019-02-26 17:02:24 +08:00
OsuGame game = new OsuGame();
game.SetHost(host);
Children = new Drawable[]
2018-04-13 17:19:50 +08:00
{
new Box
{
RelativeSizeAxes = Axes.Both,
Colour = Color4.Black,
},
2019-02-26 17:02:24 +08:00
game
};
2018-04-13 17:19:50 +08:00
}
}
}