Skip to content

TDD Godot with VS2026 through 2dog #60

@GeorgeS2019

Description

@GeorgeS2019

Perhaps we could not rethink how VS2026 could support TDD with Godot4 in .NET

outfox/2dog#4

using twodog.xunit;

[Collection("GodotHeadless")]
public class GodotSceneTests(GodotHeadlessFixture godot)
{
    [Fact]
    public void LoadScene_ValidPath_Succeeds()
    {
        var scene = GD.Load<PackedScene>("res://game.tscn");
        var instance = scene.Instantiate();
        
        godot.Tree.Root.AddChild(instance);
        
        Assert.NotNull(instance.Parent);
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions