mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-13 11:20:31 +00:00
Remove redundant setup in template game test scenes
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Platform;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace TemplateGame.Game.Tests.Visual
|
||||
@@ -10,15 +9,10 @@ namespace TemplateGame.Game.Tests.Visual
|
||||
// Add visual tests to ensure correct behaviour of your game: https://github.com/ppy/osu-framework/wiki/Development-and-Testing
|
||||
// You can make changes to classes associated with the tests and they will recompile and update immediately.
|
||||
|
||||
private TemplateGameGame game;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(GameHost host)
|
||||
private void load()
|
||||
{
|
||||
game = new TemplateGameGame();
|
||||
game.SetHost(host);
|
||||
|
||||
AddGame(game);
|
||||
AddGame(new TemplateGameGame());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Platform;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace FlappyDon.Game.Tests.Visual
|
||||
@@ -11,14 +10,10 @@ namespace FlappyDon.Game.Tests.Visual
|
||||
[TestFixture]
|
||||
public partial class TestSceneFlappyDonGame : FlappyDonTestScene
|
||||
{
|
||||
private FlappyDonGame game;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(GameHost host)
|
||||
private void load()
|
||||
{
|
||||
game = new FlappyDonGame();
|
||||
game.SetHost(host);
|
||||
AddGame(game);
|
||||
AddGame(new FlappyDonGame());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user