-
-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: migrate to TUnit #223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR migrates the test framework from xUnit to TUnit by replacing test attributes and updating helper utilities.
Key Changes
- Replaced
[Fact]attributes with[Test]throughout test files - Replaced
[Theory]/[InlineData]with[Test]/[Arguments]for parameterized tests - Changed global using from
XunittoTUnitin the test helpers - Added a new
Recordhelper class to replace xUnit'sRecord.Exceptionfunctionality - Updated assertion syntax in delegate tests to use aweXpect instead of xUnit assertions
Reviewed Changes
Copilot reviewed 94 out of 94 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| Tests/Mockolate.Tests/TestHelpers/Usings.cs | Updated global using from Xunit to TUnit |
| Tests/Mockolate.Tests/TestHelpers/Record.cs | Added Record helper class with Exception method for capturing exceptions |
| Tests/Mockolate.Tests/Verify/*.cs | Migrated test attributes from [Fact] to [Test] and [Theory]/[InlineData] to [Test]/[Arguments] |
| Tests/Mockolate.Tests/MockDelegates/DelegateTests.cs | Updated assertions from xUnit Assert to aweXpect syntax |
| Tests/Mockolate.Tests/Mock*/*.cs | Migrated all test attributes to TUnit equivalents across all mock test files |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
🚀 Benchmark ResultsDetails
|
f73fab0 to
37f8f6c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 96 out of 96 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This PR migrates the test framework from xUnit to TUnit by replacing test attributes and updating helper utilities.
Key Changes
[Fact]attributes with[Test]throughout test files[Theory]/[InlineData]with[Test]/[Arguments]for parameterized testsXunittoTUnitin the test helpersRecordhelper class to replace xUnit'sRecord.Exceptionfunctionality