Skip to content
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

Migrate NUnit assertions to the constraint model in preparation of the NUnit 4 upgrade #740

Merged
merged 8 commits into from
Aug 20, 2024

Conversation

danielmarbach
Copy link
Contributor

@danielmarbach danielmarbach commented Aug 19, 2024

This PR contains all changes related to assertion model according to the constraint assertion model.

Using a script, we apply all assertion rules provided by the NUnit.Analyzers package. In addition, some manual interventions are done when applicable.

Plan of action

  • ⚠️ Build the solution and resolve any remaining errors or warnings
  • ✅ Review the assertions commit by commit
  • 👀 Invite another pair of eyes to re-review
  • 🏗 Set the PR to In progress on the board

@danielmarbach danielmarbach self-assigned this Aug 19, 2024
@danielmarbach danielmarbach enabled auto-merge (squash) August 19, 2024 07:52
@@ -17,7 +17,8 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="NServiceBus.AcceptanceTests.Sources" Version="9.1.1" GeneratePathProperty="true" />
<PackageReference Include="Nunit" Version="3.14.0" />
<PackageReference Include="NUnit" Version="3.14.0" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was crucial to switch from Nunit to NUnit making sure the script catches all references.

@danielmarbach danielmarbach merged commit 2f4e6dd into master Aug 20, 2024
3 checks passed
@danielmarbach danielmarbach deleted the nunit-assertions-migration branch August 20, 2024 11:44
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