Skip to content

Commit

Permalink
doc: replace GoDotLog with Log in example code
Browse files Browse the repository at this point in the history
Updated example code in README to use Chickensoft.Log instead of
deprecated GoDotLog.
  • Loading branch information
wlsnmrk committed Feb 8, 2025
1 parent 1cf31fb commit c17166c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ Add the latest version of GoDotTest to your `*.csproj` file. Make sure to replac
The example below shows how unit tests are written. Each test extends the provided `TestClass` and receives the test scene as a constructor argument which is passed to the base class. The test scene can be used by tests to create nodes and add them to the scene tree.

```csharp
using Chickensoft.GoDotLog;
using Chickensoft.GoDotTest;
using Chickensoft.Log;
using Godot;

public class ExampleTest : TestClass {
private readonly ILog _log = new GDLog(nameof(ExampleTest));
private readonly ILog _log = new Log(nameof(ExampleTest), new TraceWriter());

public ExampleTest(Node testScene) : base(testScene) { }

Expand Down

0 comments on commit c17166c

Please sign in to comment.