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