Skip to content

Commit

Permalink
Move HuesTestScene and runner to separate class files
Browse files Browse the repository at this point in the history
  • Loading branch information
jai-x committed Jul 7, 2021
1 parent 86b8106 commit 9d2b3f5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 22 deletions.
9 changes: 9 additions & 0 deletions hues.Game.Tests/HuesTestScene.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using osu.Framework.Testing;

namespace hues.Game.Tests
{
public class HuesTestScene : TestScene
{
protected override ITestSceneTestRunner CreateRunner() => new HuesTestSceneTestRunner();
}
}
17 changes: 17 additions & 0 deletions hues.Game.Tests/HuesTestSceneTestRunner.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using osu.Framework.Testing;

namespace hues.Game.Tests
{
public class HuesTestSceneTestRunner : HuesGameBase, ITestSceneTestRunner
{
private TestSceneTestRunner.TestRunner runner;

protected override void LoadAsyncComplete()
{
base.LoadAsyncComplete();
Add(runner = new TestSceneTestRunner.TestRunner());
}

public void RunTestBlocking(TestScene test) => runner.RunTestBlocking(test);
}
}
22 changes: 0 additions & 22 deletions hues.Game.Tests/Visual/HuesTestScene.cs

This file was deleted.

0 comments on commit 9d2b3f5

Please sign in to comment.