Skip to content

Commit

Permalink
Update README.md - Fix an issue in the example Main.cs (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
TZer0 authored Dec 18, 2023
1 parent f768c3b commit 4707bcc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ using GoDotTest;
#endif

public partial class Main : Node2D {
#if DEBUG
public TestEnvironment Environment = default!;
#endif

public override void _Ready() {
#if DEBUG
Expand All @@ -226,8 +228,10 @@ public partial class Main : Node2D {
GetTree().ChangeSceneToFile("res://src/Game.tscn");
}

#if DEBUG
private void RunTests()
=> _ = GoTest.RunTests(Assembly.GetExecutingAssembly(), this, Environment);
#endif
}
```

Expand Down

0 comments on commit 4707bcc

Please sign in to comment.