Add support for NUnit4#2483
Conversation
Pull Request Test Coverage Report for Build 7016904197Warning: This coverage report may be inaccurate.We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
💛 - Coveralls |
|
Since it seems to contain some breaking changes, supporting both Nunit 3 and 4 makes sense to me. |
| Exception exception = act.Should().Throw<Exception>().Which; | ||
| exception.GetType() | ||
| .FullName.Should() | ||
| .ContainEquivalentOf("NUnit.Framework.AssertionException"); |
There was a problem hiding this comment.
🤔 Are you sure this is the right one? I was also expecting a different version of the NUnitTestFramework type. Or are the exception types the same?
There was a problem hiding this comment.
Our current NUnitTestFramework also matches NUnit4, so no changes are needed on our side.
There was a problem hiding this comment.
The Test adapter also remained unchanged, according to the release notes:

|
NUnit4 needs to added here fluentassertions/Build/Build.cs Lines 275 to 281 in 29e9699 |


Add FrameworkSpecs for NUnit4 and mention support in documentation and package information.
Fixes #2482
IMPORTANT
./build.sh --target spellcheckor.\build.ps1 --target spellcheckbefore pushing and check the good outcome