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 to NUnit 4 #3132

Merged
merged 7 commits into from
Dec 2, 2023
Merged

Migrate to NUnit 4 #3132

merged 7 commits into from
Dec 2, 2023

Conversation

christophwille
Copy link
Member

@christophwille christophwille commented Nov 28, 2023

Currently using a preview of NUnit from MyGet. Will be replaced with nuget.org again once bug fix release is published.

@@ -486,7 +486,7 @@ async Task RunIL(string testFileName, CompilerOptions options = CompilerOptions.
bool optionsForce32Bit = options.HasFlag(CompilerOptions.Force32Bit);
bool asmOptionsForce32Bit = asmOptions.HasFlag(AssemblerOptions.Force32Bit);

Assert.AreEqual(optionsForce32Bit, asmOptionsForce32Bit, "Inconsistent architecture.");
Assert.That(asmOptionsForce32Bit, Is.EqualTo(optionsForce32Bit), "Inconsistent architecture.");
Copy link
Member

Choose a reason for hiding this comment

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

I really don't like that overly verbose syntax.... what's wrong with AreEqual?

Copy link
Member

@siegfriedpammer siegfriedpammer Nov 30, 2023

Choose a reason for hiding this comment

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

https://docs.nunit.org/articles/nunit/writing-tests/assertions/assertions.html... why not keep the classic model for all the existing tests?

Copy link
Member Author

Choose a reason for hiding this comment

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

Guess what will happen if we keep classic. It will be copy pasted forever.

Copy link
Member

Choose a reason for hiding this comment

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

I see no problem with that... :D the short forms are more intuitive...

@christophwille christophwille merged commit fba0dba into master Dec 2, 2023
9 checks passed
@christophwille christophwille deleted the christophwille/nunit4 branch December 2, 2023 12:38
@OsirisTerje
Copy link

mattsh247 pushed a commit to mattsh247/ILSpy that referenced this pull request Jul 30, 2024
* Migrate to NUnit 4 based on https://docs.nunit.org/articles/nunit/release-notes/Nunit4.0-MigrationGuide.html. Needed fix for nunit/nunit#4564
* Test 4.1.0-adev.1 from NUnit MyGet feed (works locally in VS)
* Update to bugfix version adev.2 (works on GH)
* NUnit 4.0.1 final
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.

3 participants