Skip to content

Removed Moryx.TestTools.NUnit and used NUnit.Constraints#767

Merged
dbeuchler merged 1 commit intofuturefrom
rework/removed-testtools-nunit
Nov 6, 2025
Merged

Removed Moryx.TestTools.NUnit and used NUnit.Constraints#767
dbeuchler merged 1 commit intofuturefrom
rework/removed-testtools-nunit

Conversation

@dbeuchler
Copy link
Member

@dbeuchler dbeuchler commented Nov 4, 2025

Moryx.TestTools.NUnit was introduced for providing custom asserts for NUnit and providing the CallerArgumentExpression. No migration guide entry because it was not a package.

NUnit 4 includes that by default: https://docs.nunit.org/articles/nunit-analyzers/NUnit2050.html

In order to get better failure messages, NUnit4 uses CallerArgumentExpression to include the expression passed in for the actual and constraint parameters. These are parameters automatically supplied by the compiler.

For better exceptions, all features of NUnit.Constraints can be used.

@dbeuchler dbeuchler self-assigned this Nov 4, 2025
@dbeuchler dbeuchler added the enhancement New feature or request label Nov 4, 2025
@dbeuchler dbeuchler added this to the Framework 10.0.0 milestone Nov 4, 2025
1nf0rmagician
1nf0rmagician previously approved these changes Nov 6, 2025
@dbeuchler dbeuchler merged commit 39b69aa into future Nov 6, 2025
4 checks passed
@dbeuchler dbeuchler deleted the rework/removed-testtools-nunit branch November 6, 2025 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants