Skip to content

feat: migrate template test project from xUnit to TUnit#661

Open
Copilot wants to merge 3 commits intomainfrom
copilot/convert-xunit-to-tunit
Open

feat: migrate template test project from xUnit to TUnit#661
Copilot wants to merge 3 commits intomainfrom
copilot/convert-xunit-to-tunit

Conversation

Copy link
Contributor

Copilot AI commented Feb 14, 2026

Migrates the Coalesce Vue template's test project from xUnit to TUnit, a modern testing framework with source-generated test discovery and native .NET 10 support.

Changes

  • Package references: Replace xunit, xunit.runner.visualstudio, Microsoft.NET.Test.Sdk with TUnit (v1.13.56)
  • Test syntax: Convert [Fact][Test], synchronous methods → async Task
  • Assertions: Migrate to TUnit's fluent async assertions (Assert.That(x).IsEqualTo(y))
  • AssertionExtensions: Refactor helper methods to use TUnit's fluent API with conditional .Because() clauses
  • global.json: Add test.runner: "Microsoft.Testing.Platform" for .NET 10 compatibility

Example

Before:

[Fact]
public void Test1()
{
    Assert.Equal(expected, actual);
}

After:

[Test]
public async Task Test1()
{
    await Assert.That(actual).IsEqualTo(expected);
}

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Convert xUnit test project to TUnit feat: migrate template test project from xUnit to TUnit Feb 14, 2026
Copilot AI requested a review from ascott18 February 14, 2026 17:55
@ascott18 ascott18 marked this pull request as ready for review February 15, 2026 03:51
Copilot AI and others added 3 commits February 14, 2026 19:51
Co-authored-by: ascott18 <5017521+ascott18@users.noreply.github.com>
…dotnet test support

Co-authored-by: ascott18 <5017521+ascott18@users.noreply.github.com>
Co-authored-by: ascott18 <5017521+ascott18@users.noreply.github.com>
@ascott18 ascott18 force-pushed the copilot/convert-xunit-to-tunit branch from 2f37eff to 3f30e4c Compare February 15, 2026 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants