Migrate test framework from xUnit to TUnit#4
Merged
Conversation
Agent-Logs-Url: https://github.com/mg0x7BE/day-phase-indicator/sessions/7840e9fa-16bb-4f93-b12d-3fc621c3de1c Co-authored-by: mg0x7BE <108034506+mg0x7BE@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
mg0x7BE
April 22, 2026 10:31
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace xUnit with TUnit as the sole test framework, as the existing tests use only basic xUnit primitives with direct TUnit equivalents.
Changes
DayPhaseIndicator.Tests.csproj— Swap 3 xUnit packages (xunit,xunit.runner.visualstudio,Microsoft.NET.Test.Sdk) for singleTUnit 1.37.24. AddOutputType: Exe+TestingPlatformDotnetTestSupport(required by TUnit's source-gen runner model).global.json(new) — Opt in toMicrosoft.Testing.Platformrunner, required fordotnet teston .NET 10 SDK (VSTest no longer supported).PhaseLogicTests.cs— Rewrite using TUnit API:All 15 tests pass on both
dotnet test(solution-level) and direct executable invocation.