feat: init
This commit is contained in:
13
GodotHelper.Tests/test/Tests.cs
Normal file
13
GodotHelper.Tests/test/Tests.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace GodotHelper.Tests;
|
||||
|
||||
using System.Reflection;
|
||||
using Chickensoft.GoDotTest;
|
||||
using Godot;
|
||||
|
||||
public partial class Tests : Node2D
|
||||
{
|
||||
public override void _Ready() => CallDeferred(MethodName.RunTests);
|
||||
|
||||
public void RunTests() =>
|
||||
GoTest.RunTests(Assembly.GetExecutingAssembly(), this);
|
||||
}
|
||||
1
GodotHelper.Tests/test/Tests.cs.uid
Normal file
1
GodotHelper.Tests/test/Tests.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://d1ejsfsekh8yr
|
||||
6
GodotHelper.Tests/test/Tests.tscn
Normal file
6
GodotHelper.Tests/test/Tests.tscn
Normal file
@@ -0,0 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bv5dxd8hrc5g4"]
|
||||
|
||||
[ext_resource type="Script" path="res://test/Tests.cs" id="1_310o6"]
|
||||
|
||||
[node name="Node2D" type="Node2D"]
|
||||
script = ExtResource("1_310o6")
|
||||
24
GodotHelper.Tests/test/src/PackageTest.cs
Normal file
24
GodotHelper.Tests/test/src/PackageTest.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
namespace GodotHelper.Tests;
|
||||
|
||||
using Chickensoft.GoDotTest;
|
||||
using Godot;
|
||||
using Shouldly;
|
||||
|
||||
public class PackageTest : TestClass
|
||||
{
|
||||
public PackageTest(Node testScene) : base(testScene) { }
|
||||
|
||||
[Test]
|
||||
public void Initializes()
|
||||
{
|
||||
var package = new Package();
|
||||
package.ShouldBeAssignableTo<Package>();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void MethodReturnsString()
|
||||
{
|
||||
var package = new Package();
|
||||
package.Method().ShouldBe("Hello, world!");
|
||||
}
|
||||
}
|
||||
1
GodotHelper.Tests/test/src/PackageTest.cs.uid
Normal file
1
GodotHelper.Tests/test/src/PackageTest.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://c5puoyi2jgtlm
|
||||
Reference in New Issue
Block a user