Major Changes including Options menu, logic blocks, modding system, and more.
This commit is contained in:
34
test/src/App/AppTest.cs
Normal file
34
test/src/App/AppTest.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
// namespace FoodFactory;
|
||||
|
||||
// using System.Threading.Tasks;
|
||||
// using Chickensoft.GoDotTest;
|
||||
// using Chickensoft.GodotTestDriver;
|
||||
// using Chickensoft.GodotTestDriver.Drivers;
|
||||
// using Godot;
|
||||
// using Shouldly;
|
||||
|
||||
// public class GameTest : TestClass
|
||||
// {
|
||||
// private App _game = default!;
|
||||
// private Fixture _fixture = default!;
|
||||
|
||||
// public GameTest(Node testScene) : base(testScene) { }
|
||||
|
||||
// [SetupAll]
|
||||
// public async Task Setup()
|
||||
// {
|
||||
// _fixture = new Fixture(TestScene.GetTree());
|
||||
// _game = await _fixture.LoadAndAddScene<App>();
|
||||
// }
|
||||
|
||||
// [CleanupAll]
|
||||
// public void Cleanup() => _fixture.Cleanup();
|
||||
|
||||
// [Test]
|
||||
// public void TestButtonUpdatesCounter()
|
||||
// {
|
||||
// var buttonDriver = new ButtonDriver(() => _game.TestButton);
|
||||
// buttonDriver.ClickCenter();
|
||||
// _game.ButtonPresses.ShouldBe(1);
|
||||
// }
|
||||
// }
|
||||
@@ -1,34 +0,0 @@
|
||||
namespace FoodFactory;
|
||||
|
||||
using System.Threading.Tasks;
|
||||
using Chickensoft.GoDotTest;
|
||||
using Chickensoft.GodotTestDriver;
|
||||
using Chickensoft.GodotTestDriver.Drivers;
|
||||
using Godot;
|
||||
using Shouldly;
|
||||
|
||||
public class GameTest : TestClass
|
||||
{
|
||||
private Game _game = default!;
|
||||
private Fixture _fixture = default!;
|
||||
|
||||
public GameTest(Node testScene) : base(testScene) { }
|
||||
|
||||
[SetupAll]
|
||||
public async Task Setup()
|
||||
{
|
||||
_fixture = new Fixture(TestScene.GetTree());
|
||||
_game = await _fixture.LoadAndAddScene<Game>();
|
||||
}
|
||||
|
||||
[CleanupAll]
|
||||
public void Cleanup() => _fixture.Cleanup();
|
||||
|
||||
[Test]
|
||||
public void TestButtonUpdatesCounter()
|
||||
{
|
||||
var buttonDriver = new ButtonDriver(() => _game.TestButton);
|
||||
buttonDriver.ClickCenter();
|
||||
_game.ButtonPresses.ShouldBe(1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user