Skip to content

twodog.Testing.Fixture ​

Starts a Godot test fixture with rendering enabled.

csharp
public class Fixture : FixtureBase

Package: 2dog.engine
Namespace: twodog.Testing

Use this fixture for tests that need a display, rendered frames, or window behavior. For most CI tests, prefer HeadlessFixture.

Inherited Properties ​

PropertyTypeDescription
Enginetwodog.EngineEngine owned by the fixture
GodotInstanceGodot.GodotInstanceRunning native instance
TreeGodot.SceneTreeActive scene tree

xUnit Collection ​

RenderingCollection supplies this fixture to a non-parallel xUnit collection.

csharp
using twodog.Testing;
using twodog.Testing.Xunit;
using Xunit;

[Collection<RenderingCollection>]
public class RenderingTests(Fixture godot)
{
    [Fact]
    public void SceneTree_IsRunning() => Assert.NotNull(godot.Tree.Root);
}