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.Allocation;
|
||||||
using osu.Framework.Platform;
|
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
|
||||||
namespace TemplateGame.Game.Tests.Visual
|
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
|
// 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.
|
// You can make changes to classes associated with the tests and they will recompile and update immediately.
|
||||||
|
|
||||||
private TemplateGameGame game;
|
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(GameHost host)
|
private void load()
|
||||||
{
|
{
|
||||||
game = new TemplateGameGame();
|
AddGame(new TemplateGameGame());
|
||||||
game.SetHost(host);
|
|
||||||
|
|
||||||
AddGame(game);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Platform;
|
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
|
||||||
namespace FlappyDon.Game.Tests.Visual
|
namespace FlappyDon.Game.Tests.Visual
|
||||||
@@ -11,14 +10,10 @@ namespace FlappyDon.Game.Tests.Visual
|
|||||||
[TestFixture]
|
[TestFixture]
|
||||||
public partial class TestSceneFlappyDonGame : FlappyDonTestScene
|
public partial class TestSceneFlappyDonGame : FlappyDonTestScene
|
||||||
{
|
{
|
||||||
private FlappyDonGame game;
|
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(GameHost host)
|
private void load()
|
||||||
{
|
{
|
||||||
game = new FlappyDonGame();
|
AddGame(new FlappyDonGame());
|
||||||
game.SetHost(host);
|
|
||||||
AddGame(game);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user